@retailcrm/embed-ui-v1-components 0.9.19 → 0.9.21
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/AGENTS.md +8 -0
- package/README.md +5 -1
- package/bin/embed-ui-v1-components.mjs +32 -24
- package/bin/postinstall.mjs +2 -2
- package/dist/host.cjs +19 -13
- package/dist/host.css +8 -10
- package/dist/host.d.ts +52 -58
- package/dist/host.js +19 -13
- package/dist/remote.cjs +97 -94
- package/dist/remote.d.ts +20 -32
- package/dist/remote.js +97 -94
- package/docs/AGENT-DESIGN-GUIDELINES.md +463 -0
- package/docs/AI.md +89 -6
- package/docs/FORMAT.md +11 -9
- package/docs/PROFILES.md +9 -5
- package/docs/README.md +14 -5
- package/docs/assets/page-guidelines/card-settings-page.png +0 -0
- package/docs/assets/page-guidelines/collapse-block-page.png +0 -0
- package/docs/assets/page-guidelines/entity-list-page.png +0 -0
- package/docs/assets/page-guidelines/modal-sidebar.png +0 -0
- package/docs/assets/page-guidelines/modal-window.png +0 -0
- package/docs/assets/page-guidelines/multi-column-page.png +0 -0
- package/docs/profiles/UiAddButton.yml +30 -0
- package/docs/profiles/UiAlert.yml +27 -0
- package/docs/profiles/UiAvatar.yml +26 -0
- package/docs/profiles/UiAvatarList.yml +28 -0
- package/docs/profiles/UiButton.yml +1 -8
- package/docs/profiles/UiCalendar.yml +28 -0
- package/docs/profiles/UiCheckbox.yml +32 -0
- package/docs/profiles/UiCollapse.yml +34 -0
- package/docs/profiles/UiCollapseBox.yml +30 -0
- package/docs/profiles/UiCollapseGroup.yml +26 -0
- package/docs/profiles/UiCopyButton.yml +35 -0
- package/docs/profiles/UiDate.yml +28 -0
- package/docs/profiles/UiDatePicker.yml +30 -0
- package/docs/profiles/UiError.yml +45 -0
- package/docs/profiles/UiField.yml +1 -15
- package/docs/profiles/UiImage.yml +28 -0
- package/docs/profiles/UiInfobox.yml +33 -0
- package/docs/profiles/UiLink.yml +40 -0
- package/docs/profiles/UiLoader.yml +35 -0
- package/docs/profiles/UiMenuItem.yml +38 -0
- package/docs/profiles/UiMenuItemGroup.yml +27 -0
- package/docs/profiles/UiModalSidebar.yml +32 -0
- package/docs/profiles/UiModalWindow.yml +42 -0
- package/docs/profiles/UiModalWindowSurface.yml +32 -0
- package/docs/profiles/UiNumberStepper.yml +36 -0
- package/docs/profiles/UiPageHeader.yml +1 -23
- package/docs/profiles/UiPopper.yml +1 -13
- package/docs/profiles/UiPopperConnector.yml +7 -25
- package/docs/profiles/UiPopperTarget.yml +7 -25
- package/docs/profiles/UiRadio.yml +40 -0
- package/docs/profiles/UiRadioSwitch.yml +1 -32
- package/docs/profiles/UiRadioSwitchOption.yml +9 -13
- package/docs/profiles/UiScrollBox.yml +34 -0
- package/docs/profiles/UiSelect.yml +1 -44
- package/docs/profiles/UiSelectOption.yml +32 -0
- package/docs/profiles/UiSelectOptionGroup.yml +30 -0
- package/docs/profiles/UiSkeleton.yml +32 -0
- package/docs/profiles/UiSlider.yml +40 -0
- package/docs/profiles/UiSwitch.yml +38 -0
- package/docs/profiles/UiTab.yml +7 -16
- package/docs/profiles/UiTabGroup.yml +1 -30
- package/docs/profiles/UiTable.yml +148 -0
- package/docs/profiles/UiTableBodyCell.yml +28 -0
- package/docs/profiles/UiTableColumn.yml +39 -0
- package/docs/profiles/UiTableFooterButton.yml +43 -0
- package/docs/profiles/UiTableFooterSection.yml +37 -0
- package/docs/profiles/UiTableHeadCell.yml +28 -0
- package/docs/profiles/UiTableSorter.yml +29 -0
- package/docs/profiles/UiTag.yml +38 -0
- package/docs/profiles/UiTextbox.yml +1 -32
- package/docs/profiles/UiTimePicker.yml +40 -0
- package/docs/profiles/UiToggleButton.yml +1 -11
- package/docs/profiles/UiToggleGroup.yml +1 -13
- package/docs/profiles/UiToggleGroupOption.yml +9 -11
- package/docs/profiles/UiToolbarButton.yml +37 -0
- package/docs/profiles/UiToolbarLink.yml +37 -0
- package/docs/profiles/UiTooltip.yml +38 -0
- package/docs/profiles/UiTransition.yml +37 -0
- package/docs/profiles/UiYandexMap.yml +53 -0
- package/package.json +15 -15
package/dist/host.js
CHANGED
|
@@ -419,7 +419,7 @@ function render$h(_ctx, _cache) {
|
|
|
419
419
|
])]);
|
|
420
420
|
}
|
|
421
421
|
const SpriteVIP = { render: render$h };
|
|
422
|
-
const ImageWorkersKey = Symbol("$image.workers");
|
|
422
|
+
const ImageWorkersKey = /* @__PURE__ */ Symbol("$image.workers");
|
|
423
423
|
const _hoisted_1$L = ["alt", "src"];
|
|
424
424
|
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
425
425
|
__name: "UiImage",
|
|
@@ -490,7 +490,7 @@ var STATUS = /* @__PURE__ */ ((STATUS2) => {
|
|
|
490
490
|
STATUS2["FREE"] = "free";
|
|
491
491
|
return STATUS2;
|
|
492
492
|
})(STATUS || {});
|
|
493
|
-
const AvatarSizeKey = Symbol("UiAvatarSize");
|
|
493
|
+
const AvatarSizeKey = /* @__PURE__ */ Symbol("UiAvatarSize");
|
|
494
494
|
const _hoisted_1$K = {
|
|
495
495
|
key: 1,
|
|
496
496
|
class: "ui-v1-avatar__unresolved"
|
|
@@ -703,7 +703,7 @@ const normalize$3 = (content) => {
|
|
|
703
703
|
});
|
|
704
704
|
return normalized;
|
|
705
705
|
};
|
|
706
|
-
const ElementRefKey = Symbol.for(
|
|
706
|
+
const ElementRefKey = /* @__PURE__ */ Symbol.for(
|
|
707
707
|
"[@retailcrm/embed-ui-v1-components]:ElementRef"
|
|
708
708
|
);
|
|
709
709
|
const useElementRef = () => {
|
|
@@ -1097,7 +1097,7 @@ class VueI18n {
|
|
|
1097
1097
|
this._state.locale = locale;
|
|
1098
1098
|
}
|
|
1099
1099
|
}
|
|
1100
|
-
const I18nInjectKey = Symbol("$embedI18n");
|
|
1100
|
+
const I18nInjectKey = /* @__PURE__ */ Symbol("$embedI18n");
|
|
1101
1101
|
const plugin$1 = {
|
|
1102
1102
|
install(app, options) {
|
|
1103
1103
|
app.provide(I18nInjectKey, options instanceof VueI18n ? options : new VueI18n(options?.locale));
|
|
@@ -2589,10 +2589,10 @@ var SIZE$9 = /* @__PURE__ */ ((SIZE2) => {
|
|
|
2589
2589
|
SIZE2["MD"] = "md";
|
|
2590
2590
|
return SIZE2;
|
|
2591
2591
|
})(SIZE$9 || {});
|
|
2592
|
-
const CollapseGroupRegisterKey = Symbol("UiCollapseGroup_register");
|
|
2593
|
-
const CollapseGroupUnregisterKey = Symbol("UiCollapseGroup_unregister");
|
|
2594
|
-
const CollapseGroupExpandKey = Symbol("UiCollapseGroup_expand");
|
|
2595
|
-
const CollapseGroupCollapseKey = Symbol("UiCollapseGroup_collapse");
|
|
2592
|
+
const CollapseGroupRegisterKey = /* @__PURE__ */ Symbol("UiCollapseGroup_register");
|
|
2593
|
+
const CollapseGroupUnregisterKey = /* @__PURE__ */ Symbol("UiCollapseGroup_unregister");
|
|
2594
|
+
const CollapseGroupExpandKey = /* @__PURE__ */ Symbol("UiCollapseGroup_expand");
|
|
2595
|
+
const CollapseGroupCollapseKey = /* @__PURE__ */ Symbol("UiCollapseGroup_collapse");
|
|
2596
2596
|
const _hoisted_1$B = ["id", "aria-labelledby"];
|
|
2597
2597
|
const _hoisted_2$j = ["id", "disabled", "aria-controls", "aria-expanded", "aria-disabled"];
|
|
2598
2598
|
const _hoisted_3$f = { class: "ui-v1-collapse-box__icon-sprite" };
|
|
@@ -4479,7 +4479,7 @@ const computePosition = (reference, floating, options) => {
|
|
|
4479
4479
|
platform: platformWithCache
|
|
4480
4480
|
});
|
|
4481
4481
|
};
|
|
4482
|
-
const ProcessedByPopperKey = Symbol.for("[@retailcrm/embed-ui-v1-components]:ProcessedByPopper");
|
|
4482
|
+
const ProcessedByPopperKey = /* @__PURE__ */ Symbol.for("[@retailcrm/embed-ui-v1-components]:ProcessedByPopper");
|
|
4483
4483
|
const sides = ["top", "right", "bottom", "left"];
|
|
4484
4484
|
const isPlacementLiteral = (value) => sides.some((side) => {
|
|
4485
4485
|
return value === side || value === `${side}-start` || value === `${side}-end`;
|
|
@@ -4494,7 +4494,7 @@ const isPlacementAdaptation = (value) => {
|
|
|
4494
4494
|
const isPlacementOptions = (value) => {
|
|
4495
4495
|
return typeof value === "object" && value !== null && "side" in value && isPlacementSide(value.side) && "alignment" in value && isPlacementAlignment(value.alignment) && "adaptation" in value && isPlacementAdaptation(value.adaptation);
|
|
4496
4496
|
};
|
|
4497
|
-
const PopperTargetKey = Symbol.for(
|
|
4497
|
+
const PopperTargetKey = /* @__PURE__ */ Symbol.for(
|
|
4498
4498
|
"[@retailcrm/embed-ui-v1-components]:PopperTarget"
|
|
4499
4499
|
);
|
|
4500
4500
|
const useTarget = (target) => {
|
|
@@ -7575,7 +7575,7 @@ class LayerRegistry {
|
|
|
7575
7575
|
}
|
|
7576
7576
|
}
|
|
7577
7577
|
const layers = new LayerRegistry();
|
|
7578
|
-
const ModalInjectKey = Symbol("$embedModal");
|
|
7578
|
+
const ModalInjectKey = /* @__PURE__ */ Symbol("$embedModal");
|
|
7579
7579
|
const plugin = {
|
|
7580
7580
|
install(app, options) {
|
|
7581
7581
|
app.provide(ModalInjectKey, reactive({
|
|
@@ -10460,6 +10460,12 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
10460
10460
|
};
|
|
10461
10461
|
const onInput = (event) => {
|
|
10462
10462
|
const target = event.target;
|
|
10463
|
+
if (inputReadonly.value) {
|
|
10464
|
+
if (target) {
|
|
10465
|
+
target.value = inputValue.value;
|
|
10466
|
+
}
|
|
10467
|
+
return;
|
|
10468
|
+
}
|
|
10463
10469
|
emit("input", target?.value ?? "");
|
|
10464
10470
|
};
|
|
10465
10471
|
const onFocus = (event) => emit("focus", event);
|
|
@@ -10518,7 +10524,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
10518
10524
|
active: __props.expanded,
|
|
10519
10525
|
clearable: __props.clearable,
|
|
10520
10526
|
invalid: __props.invalid,
|
|
10521
|
-
readonly:
|
|
10527
|
+
readonly: __props.readonly,
|
|
10522
10528
|
size: __props.textboxSize,
|
|
10523
10529
|
disabled: __props.disabled,
|
|
10524
10530
|
"input-attributes": textboxAttributes.value,
|
|
@@ -12580,7 +12586,7 @@ var SIZE = /* @__PURE__ */ ((SIZE2) => {
|
|
|
12580
12586
|
return SIZE2;
|
|
12581
12587
|
})(SIZE || {});
|
|
12582
12588
|
const ToolbarInjectKeys = {
|
|
12583
|
-
size: Symbol("UiToolbarSize")
|
|
12589
|
+
size: /* @__PURE__ */ Symbol("UiToolbarSize")
|
|
12584
12590
|
};
|
|
12585
12591
|
const useToolbarSize = () => inject(ToolbarInjectKeys.size, computed(
|
|
12586
12592
|
() => "sm"
|
package/dist/remote.cjs
CHANGED
|
@@ -154,7 +154,7 @@ const _hoisted_3$3 = {
|
|
|
154
154
|
class: "ui-v1-field__required-mark",
|
|
155
155
|
"aria-hidden": "true"
|
|
156
156
|
};
|
|
157
|
-
const _hoisted_4$
|
|
157
|
+
const _hoisted_4$2 = {
|
|
158
158
|
key: 1,
|
|
159
159
|
class: "ui-v1-field__hint"
|
|
160
160
|
};
|
|
@@ -233,7 +233,7 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
|
233
233
|
]),
|
|
234
234
|
__props.required ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$3, " * ")) : vue.createCommentVNode("", true)
|
|
235
235
|
], 8, _hoisted_2$3)) : vue.createCommentVNode("", true),
|
|
236
|
-
__props.hint || _ctx.$slots.hint ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$
|
|
236
|
+
__props.hint || _ctx.$slots.hint ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$2, [
|
|
237
237
|
vue.createVNode(vue.unref(UiPopperConnector), null, {
|
|
238
238
|
default: vue.withCtx(() => [
|
|
239
239
|
vue.createVNode(vue.unref(UiPopperTarget), {
|
|
@@ -404,14 +404,15 @@ const UiPageHeaderTitle = remote.defineRemoteComponent(UiPageHeaderTitleType, {
|
|
|
404
404
|
blur: remote.defineRemoteMethod()
|
|
405
405
|
}
|
|
406
406
|
});
|
|
407
|
-
const _hoisted_1$5 = {
|
|
408
|
-
const _hoisted_2$2 = {
|
|
407
|
+
const _hoisted_1$5 = {
|
|
409
408
|
key: 0,
|
|
410
|
-
class: "ui-v1-page-
|
|
409
|
+
class: "ui-v1-page-header__actions"
|
|
411
410
|
};
|
|
412
|
-
const
|
|
411
|
+
const _hoisted_2$2 = { class: "ui-v1-page-header__main" };
|
|
412
|
+
const _hoisted_3$2 = { class: "ui-v1-page-header__body" };
|
|
413
|
+
const _hoisted_4$1 = {
|
|
413
414
|
key: 0,
|
|
414
|
-
class: "ui-v1-page-
|
|
415
|
+
class: "ui-v1-page-header__addon"
|
|
415
416
|
};
|
|
416
417
|
const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
|
|
417
418
|
...{
|
|
@@ -497,60 +498,62 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
|
|
|
497
498
|
"ui-v1-page-header_readonly": __props.readonly
|
|
498
499
|
}
|
|
499
500
|
}, _ctx.$attrs), [
|
|
500
|
-
vue.
|
|
501
|
-
vue.createVNode(vue.unref(UiPopperConnector), null, {
|
|
502
|
-
default: vue.withCtx(() => [
|
|
503
|
-
vue.createVNode(vue.unref(UiPopperTarget), {
|
|
504
|
-
tag: "div",
|
|
505
|
-
class: "ui-v1-page-header__title"
|
|
506
|
-
}, {
|
|
507
|
-
default: vue.withCtx(() => [
|
|
508
|
-
vue.createVNode(vue.unref(UiPageHeaderTitle), {
|
|
509
|
-
id: __props.id,
|
|
510
|
-
ref_key: "header",
|
|
511
|
-
ref: header,
|
|
512
|
-
value: valueState.value,
|
|
513
|
-
placeholder: __props.placeholder,
|
|
514
|
-
error: __props.error,
|
|
515
|
-
invalid: __props.invalid,
|
|
516
|
-
editable: __props.editable,
|
|
517
|
-
autofocus: __props.autofocus,
|
|
518
|
-
autoselect: __props.autoselect,
|
|
519
|
-
readonly: __props.readonly,
|
|
520
|
-
disabled: __props.disabled,
|
|
521
|
-
onBlur: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("blur", $event)),
|
|
522
|
-
onChange: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("change", $event)),
|
|
523
|
-
onFocus: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("focus", $event)),
|
|
524
|
-
onKeydown: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("keydown", $event)),
|
|
525
|
-
"onUpdate:value": onUpdateValue
|
|
526
|
-
}, null, 8, ["id", "value", "placeholder", "error", "invalid", "editable", "autofocus", "autoselect", "readonly", "disabled"])
|
|
527
|
-
]),
|
|
528
|
-
_: 1
|
|
529
|
-
}),
|
|
530
|
-
displayInvalid.value && __props.error ? (vue.openBlock(), vue.createBlock(vue.unref(UiTooltip), {
|
|
531
|
-
key: 0,
|
|
532
|
-
"target-triggers": {
|
|
533
|
-
hide: [""]
|
|
534
|
-
},
|
|
535
|
-
"offset-main-axis": 8,
|
|
536
|
-
visible: "",
|
|
537
|
-
placement: "right"
|
|
538
|
-
}, {
|
|
539
|
-
default: vue.withCtx(() => [
|
|
540
|
-
vue.createTextVNode(vue.toDisplayString(__props.error), 1)
|
|
541
|
-
]),
|
|
542
|
-
_: 1
|
|
543
|
-
})) : vue.createCommentVNode("", true)
|
|
544
|
-
]),
|
|
545
|
-
_: 1
|
|
546
|
-
}),
|
|
547
|
-
_ctx.$slots.addon ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$2, [
|
|
548
|
-
vue.renderSlot(_ctx.$slots, "addon")
|
|
549
|
-
])) : vue.createCommentVNode("", true)
|
|
550
|
-
]),
|
|
551
|
-
_ctx.$slots.actions ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$2, [
|
|
501
|
+
_ctx.$slots.actions ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$5, [
|
|
552
502
|
vue.renderSlot(_ctx.$slots, "actions")
|
|
553
|
-
])) : vue.createCommentVNode("", true)
|
|
503
|
+
])) : vue.createCommentVNode("", true),
|
|
504
|
+
vue.createElementVNode("div", _hoisted_2$2, [
|
|
505
|
+
vue.createElementVNode("div", _hoisted_3$2, [
|
|
506
|
+
vue.createVNode(vue.unref(UiPopperConnector), null, {
|
|
507
|
+
default: vue.withCtx(() => [
|
|
508
|
+
vue.createVNode(vue.unref(UiPopperTarget), {
|
|
509
|
+
tag: "div",
|
|
510
|
+
class: "ui-v1-page-header__title"
|
|
511
|
+
}, {
|
|
512
|
+
default: vue.withCtx(() => [
|
|
513
|
+
vue.createVNode(vue.unref(UiPageHeaderTitle), {
|
|
514
|
+
id: __props.id,
|
|
515
|
+
ref_key: "header",
|
|
516
|
+
ref: header,
|
|
517
|
+
value: valueState.value,
|
|
518
|
+
placeholder: __props.placeholder,
|
|
519
|
+
error: __props.error,
|
|
520
|
+
invalid: __props.invalid,
|
|
521
|
+
editable: __props.editable,
|
|
522
|
+
autofocus: __props.autofocus,
|
|
523
|
+
autoselect: __props.autoselect,
|
|
524
|
+
readonly: __props.readonly,
|
|
525
|
+
disabled: __props.disabled,
|
|
526
|
+
onBlur: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("blur", $event)),
|
|
527
|
+
onChange: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("change", $event)),
|
|
528
|
+
onFocus: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("focus", $event)),
|
|
529
|
+
onKeydown: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("keydown", $event)),
|
|
530
|
+
"onUpdate:value": onUpdateValue
|
|
531
|
+
}, null, 8, ["id", "value", "placeholder", "error", "invalid", "editable", "autofocus", "autoselect", "readonly", "disabled"])
|
|
532
|
+
]),
|
|
533
|
+
_: 1
|
|
534
|
+
}),
|
|
535
|
+
displayInvalid.value && __props.error ? (vue.openBlock(), vue.createBlock(vue.unref(UiTooltip), {
|
|
536
|
+
key: 0,
|
|
537
|
+
"target-triggers": {
|
|
538
|
+
hide: [""]
|
|
539
|
+
},
|
|
540
|
+
"offset-main-axis": 8,
|
|
541
|
+
visible: "",
|
|
542
|
+
placement: "right"
|
|
543
|
+
}, {
|
|
544
|
+
default: vue.withCtx(() => [
|
|
545
|
+
vue.createTextVNode(vue.toDisplayString(__props.error), 1)
|
|
546
|
+
]),
|
|
547
|
+
_: 1
|
|
548
|
+
})) : vue.createCommentVNode("", true)
|
|
549
|
+
]),
|
|
550
|
+
_: 1
|
|
551
|
+
}),
|
|
552
|
+
_ctx.$slots.addon ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$1, [
|
|
553
|
+
vue.renderSlot(_ctx.$slots, "addon")
|
|
554
|
+
])) : vue.createCommentVNode("", true)
|
|
555
|
+
])
|
|
556
|
+
])
|
|
554
557
|
], 16);
|
|
555
558
|
};
|
|
556
559
|
}
|
|
@@ -586,13 +589,13 @@ var SIZE$4 = /* @__PURE__ */ ((SIZE2) => {
|
|
|
586
589
|
SIZE2["LG"] = "lg";
|
|
587
590
|
return SIZE2;
|
|
588
591
|
})(SIZE$4 || {});
|
|
589
|
-
const AppearanceKey = Symbol("UiRadioSwitchAppearance");
|
|
590
|
-
const SizeKey$1 = Symbol("UiRadioSwitchSize");
|
|
591
|
-
const RegistryKey$1 = Symbol("UiRadioSwitchRegistry");
|
|
592
|
-
const UpdateKey = Symbol("UiRadioSwitchUpdate");
|
|
593
|
-
const FocusableIdKey$1 = Symbol("UiRadioSwitchFocusableId");
|
|
594
|
-
const SetFocusableIdKey$1 = Symbol("UiRadioSwitchSetFocusableId");
|
|
595
|
-
const MoveFocusKey$1 = Symbol("UiRadioSwitchMoveFocus");
|
|
592
|
+
const AppearanceKey = /* @__PURE__ */ Symbol("UiRadioSwitchAppearance");
|
|
593
|
+
const SizeKey$1 = /* @__PURE__ */ Symbol("UiRadioSwitchSize");
|
|
594
|
+
const RegistryKey$1 = /* @__PURE__ */ Symbol("UiRadioSwitchRegistry");
|
|
595
|
+
const UpdateKey = /* @__PURE__ */ Symbol("UiRadioSwitchUpdate");
|
|
596
|
+
const FocusableIdKey$1 = /* @__PURE__ */ Symbol("UiRadioSwitchFocusableId");
|
|
597
|
+
const SetFocusableIdKey$1 = /* @__PURE__ */ Symbol("UiRadioSwitchSetFocusableId");
|
|
598
|
+
const MoveFocusKey$1 = /* @__PURE__ */ Symbol("UiRadioSwitchMoveFocus");
|
|
596
599
|
const useAppearance = () => vue.inject(AppearanceKey, vue.computed(() => APPEARANCE$2.DEFAULT));
|
|
597
600
|
const useSize$1 = () => vue.inject(SizeKey$1, vue.computed(() => SIZE$4.MD));
|
|
598
601
|
const useRegistry$1 = () => vue.inject(RegistryKey$1, {
|
|
@@ -1661,13 +1664,13 @@ var UiToggleButtonSize = /* @__PURE__ */ ((UiToggleButtonSize2) => {
|
|
|
1661
1664
|
UiToggleButtonSize2["XS"] = "xs";
|
|
1662
1665
|
return UiToggleButtonSize2;
|
|
1663
1666
|
})(UiToggleButtonSize || {});
|
|
1664
|
-
const FocusableIdKey = Symbol("UiToggleGroupFocusableId");
|
|
1665
|
-
const MoveFocusKey = Symbol("UiToggleGroupMoveFocus");
|
|
1666
|
-
const RegistryKey = Symbol("UiToggleGroupRegistry");
|
|
1667
|
-
const SetFocusableIdKey = Symbol("UiToggleGroupSetFocusableId");
|
|
1668
|
-
const SizeKey = Symbol("UiToggleGroupSize");
|
|
1669
|
-
const DisabledKey = Symbol("UiToggleGroupDisabled");
|
|
1670
|
-
const ToggleKey$1 = Symbol("UiToggleGroupToggle");
|
|
1667
|
+
const FocusableIdKey = /* @__PURE__ */ Symbol("UiToggleGroupFocusableId");
|
|
1668
|
+
const MoveFocusKey = /* @__PURE__ */ Symbol("UiToggleGroupMoveFocus");
|
|
1669
|
+
const RegistryKey = /* @__PURE__ */ Symbol("UiToggleGroupRegistry");
|
|
1670
|
+
const SetFocusableIdKey = /* @__PURE__ */ Symbol("UiToggleGroupSetFocusableId");
|
|
1671
|
+
const SizeKey = /* @__PURE__ */ Symbol("UiToggleGroupSize");
|
|
1672
|
+
const DisabledKey = /* @__PURE__ */ Symbol("UiToggleGroupDisabled");
|
|
1673
|
+
const ToggleKey$1 = /* @__PURE__ */ Symbol("UiToggleGroupToggle");
|
|
1671
1674
|
const useFocusableId = () => vue.inject(FocusableIdKey, vue.computed(() => null));
|
|
1672
1675
|
const useMoveFocus = () => vue.inject(MoveFocusKey, () => {
|
|
1673
1676
|
});
|
|
@@ -2228,24 +2231,24 @@ const highlight = (text, term, style) => text.replace(
|
|
|
2228
2231
|
);
|
|
2229
2232
|
let counter = 0;
|
|
2230
2233
|
const uid = (prefix = "ui-v1-select") => `${prefix}-${++counter}`;
|
|
2231
|
-
const IsSelectedKey = Symbol("UiSelectedIsSelected");
|
|
2232
|
-
const RegisterKey = Symbol("UiSelectRegister");
|
|
2233
|
-
const SyncKey = Symbol("UiSelectSync");
|
|
2234
|
-
const UnregisterKey = Symbol("UiSelectUnregister");
|
|
2235
|
-
const ToggleKey = Symbol("UiSelectToggle");
|
|
2236
|
-
const FilterKey = Symbol("UiSelectFilter");
|
|
2237
|
-
const FilteredKey = Symbol("UiSelectFiltered");
|
|
2238
|
-
const TickerKey = Symbol("UiSelectTicker");
|
|
2239
|
-
const MultipleKey = Symbol("UiSelectMultiple");
|
|
2240
|
-
const ActiveOptionIdKey = Symbol("UiSelectActiveOptionId");
|
|
2241
|
-
const FastenedKey = Symbol("UiSelectFastened");
|
|
2242
|
-
const UnregisterOptionKey = Symbol("UiSelectUnregisterOption");
|
|
2243
|
-
const RegisterOptionKey = Symbol("UiSelectRegisterOption");
|
|
2244
|
-
const RegisterGroupKey = Symbol("UiSelectOptionGroupRegister");
|
|
2245
|
-
const UnregisterGroupKey = Symbol("UiSelectOptionGroupUnregister");
|
|
2246
|
-
const RegisterHeaderOptionKey = Symbol("UiSelectOptionGroupRegisterHeaderOption");
|
|
2247
|
-
const UnregisterHeaderOptionKey = Symbol("UiSelectOptionGroupUnregisterHeaderOption");
|
|
2248
|
-
const I18nInjectKey = Symbol("$embedI18n");
|
|
2234
|
+
const IsSelectedKey = /* @__PURE__ */ Symbol("UiSelectedIsSelected");
|
|
2235
|
+
const RegisterKey = /* @__PURE__ */ Symbol("UiSelectRegister");
|
|
2236
|
+
const SyncKey = /* @__PURE__ */ Symbol("UiSelectSync");
|
|
2237
|
+
const UnregisterKey = /* @__PURE__ */ Symbol("UiSelectUnregister");
|
|
2238
|
+
const ToggleKey = /* @__PURE__ */ Symbol("UiSelectToggle");
|
|
2239
|
+
const FilterKey = /* @__PURE__ */ Symbol("UiSelectFilter");
|
|
2240
|
+
const FilteredKey = /* @__PURE__ */ Symbol("UiSelectFiltered");
|
|
2241
|
+
const TickerKey = /* @__PURE__ */ Symbol("UiSelectTicker");
|
|
2242
|
+
const MultipleKey = /* @__PURE__ */ Symbol("UiSelectMultiple");
|
|
2243
|
+
const ActiveOptionIdKey = /* @__PURE__ */ Symbol("UiSelectActiveOptionId");
|
|
2244
|
+
const FastenedKey = /* @__PURE__ */ Symbol("UiSelectFastened");
|
|
2245
|
+
const UnregisterOptionKey = /* @__PURE__ */ Symbol("UiSelectUnregisterOption");
|
|
2246
|
+
const RegisterOptionKey = /* @__PURE__ */ Symbol("UiSelectRegisterOption");
|
|
2247
|
+
const RegisterGroupKey = /* @__PURE__ */ Symbol("UiSelectOptionGroupRegister");
|
|
2248
|
+
const UnregisterGroupKey = /* @__PURE__ */ Symbol("UiSelectOptionGroupUnregister");
|
|
2249
|
+
const RegisterHeaderOptionKey = /* @__PURE__ */ Symbol("UiSelectOptionGroupRegisterHeaderOption");
|
|
2250
|
+
const UnregisterHeaderOptionKey = /* @__PURE__ */ Symbol("UiSelectOptionGroupUnregisterHeaderOption");
|
|
2251
|
+
const I18nInjectKey = /* @__PURE__ */ Symbol("$embedI18n");
|
|
2249
2252
|
const UiSelectTriggerType = "UiSelectTrigger";
|
|
2250
2253
|
const UiSelectTrigger = remote.defineRemoteComponent(UiSelectTriggerType, {
|
|
2251
2254
|
emits: [
|
|
@@ -2309,7 +2312,7 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
|
2309
2312
|
/** Атрибут placeholder нативного поля ввода input */
|
|
2310
2313
|
placeholder: {
|
|
2311
2314
|
type: String,
|
|
2312
|
-
default: "
|
|
2315
|
+
default: ""
|
|
2313
2316
|
},
|
|
2314
2317
|
/** Отображает иконку сброса введённого или выбранного значения в виде крестика */
|
|
2315
2318
|
clearable: {
|
|
@@ -3111,7 +3114,7 @@ const mountEndpointRoot = async (channel) => {
|
|
|
3111
3114
|
await root.mount();
|
|
3112
3115
|
return root;
|
|
3113
3116
|
};
|
|
3114
|
-
const ImageWorkersKey = Symbol("$image.workers");
|
|
3117
|
+
const ImageWorkersKey = /* @__PURE__ */ Symbol("$image.workers");
|
|
3115
3118
|
const usePreview = (workers = vue.ref([])) => {
|
|
3116
3119
|
const _workers = vue.inject(ImageWorkersKey, workers);
|
|
3117
3120
|
return {
|
package/dist/remote.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Alignment } from '@floating-ui/dom';
|
|
2
2
|
import { AllowedComponentProps } from 'vue';
|
|
3
|
+
import { Attrs } from 'vue';
|
|
3
4
|
import { Channel } from '@omnicajs/vue-remote/remote';
|
|
4
5
|
import { ComponentCustomProperties } from 'vue';
|
|
5
6
|
import { ComponentCustomProps } from 'vue';
|
|
@@ -34,7 +35,6 @@ import { SerializedEvent } from '@omnicajs/vue-remote/types/events';
|
|
|
34
35
|
import { SerializedFocusEvent } from '@omnicajs/vue-remote/types/events';
|
|
35
36
|
import { SerializedInputEvent } from '@omnicajs/vue-remote/types/events';
|
|
36
37
|
import { SerializedKeyboardEvent } from '@omnicajs/vue-remote/types/events';
|
|
37
|
-
import { ShallowUnwrapRef } from 'vue';
|
|
38
38
|
import { Side } from '@floating-ui/dom';
|
|
39
39
|
import { Slot } from 'vue';
|
|
40
40
|
import { Strategy } from '@floating-ui/dom';
|
|
@@ -271,9 +271,7 @@ declare const __VLS_component_2: DefineComponent<ExtractPropTypes<{
|
|
|
271
271
|
$props: Partial<{}> & Omit<{
|
|
272
272
|
readonly [x: string]: any;
|
|
273
273
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>;
|
|
274
|
-
$attrs:
|
|
275
|
-
[x: string]: unknown;
|
|
276
|
-
};
|
|
274
|
+
$attrs: Attrs;
|
|
277
275
|
$refs: {
|
|
278
276
|
[x: string]: unknown;
|
|
279
277
|
};
|
|
@@ -328,9 +326,9 @@ declare const __VLS_component_2: DefineComponent<ExtractPropTypes<{
|
|
|
328
326
|
any,
|
|
329
327
|
OnCleanup
|
|
330
328
|
]) => any, options?: WatchOptions): WatchStopHandle;
|
|
331
|
-
} & Readonly<{}> & Omit<Readonly<ExtractPropTypes<RemoteProperties<UiPageHeaderProperties>>>, string> &
|
|
329
|
+
} & Readonly<{}> & Omit<Readonly<ExtractPropTypes<RemoteProperties<UiPageHeaderProperties>>>, string> & {
|
|
332
330
|
[x: string]: unknown;
|
|
333
|
-
}
|
|
331
|
+
} & {
|
|
334
332
|
[x: string]: never;
|
|
335
333
|
} & {
|
|
336
334
|
[x: string]: unknown;
|
|
@@ -795,9 +793,7 @@ declare const __VLS_component_5: DefineComponent<ExtractPropTypes<{
|
|
|
795
793
|
$props: Partial<{}> & Omit<{
|
|
796
794
|
readonly [x: string]: any;
|
|
797
795
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>;
|
|
798
|
-
$attrs:
|
|
799
|
-
[x: string]: unknown;
|
|
800
|
-
};
|
|
796
|
+
$attrs: Attrs;
|
|
801
797
|
$refs: {
|
|
802
798
|
[x: string]: unknown;
|
|
803
799
|
};
|
|
@@ -853,9 +849,9 @@ declare const __VLS_component_5: DefineComponent<ExtractPropTypes<{
|
|
|
853
849
|
any,
|
|
854
850
|
OnCleanup
|
|
855
851
|
]) => any, options?: WatchOptions): WatchStopHandle;
|
|
856
|
-
} & Readonly<{}> & Omit<Readonly<ExtractPropTypes<RemoteProperties<UiSelectPopperProperties>>>, string> &
|
|
852
|
+
} & Readonly<{}> & Omit<Readonly<ExtractPropTypes<RemoteProperties<UiSelectPopperProperties>>>, string> & {
|
|
857
853
|
[x: string]: unknown;
|
|
858
|
-
}
|
|
854
|
+
} & {
|
|
859
855
|
[x: string]: never;
|
|
860
856
|
} & {
|
|
861
857
|
[x: string]: unknown;
|
|
@@ -1001,8 +997,8 @@ declare function __VLS_template(): {
|
|
|
1001
997
|
declare function __VLS_template_2(): {
|
|
1002
998
|
attrs: Partial<{}>;
|
|
1003
999
|
slots: {
|
|
1004
|
-
addon?(_: {}): any;
|
|
1005
1000
|
actions?(_: {}): any;
|
|
1001
|
+
addon?(_: {}): any;
|
|
1006
1002
|
};
|
|
1007
1003
|
refs: {
|
|
1008
1004
|
header: ({
|
|
@@ -1013,9 +1009,7 @@ declare function __VLS_template_2(): {
|
|
|
1013
1009
|
$props: Partial<{}> & Omit<{
|
|
1014
1010
|
readonly [x: string]: any;
|
|
1015
1011
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>;
|
|
1016
|
-
$attrs:
|
|
1017
|
-
[x: string]: unknown;
|
|
1018
|
-
};
|
|
1012
|
+
$attrs: Attrs;
|
|
1019
1013
|
$refs: {
|
|
1020
1014
|
[x: string]: unknown;
|
|
1021
1015
|
};
|
|
@@ -1070,9 +1064,9 @@ declare function __VLS_template_2(): {
|
|
|
1070
1064
|
any,
|
|
1071
1065
|
OnCleanup
|
|
1072
1066
|
]) => any, options?: WatchOptions): WatchStopHandle;
|
|
1073
|
-
} & Readonly<{}> & Omit<Readonly<ExtractPropTypes<RemoteProperties<UiPageHeaderProperties>>>, string> &
|
|
1067
|
+
} & Readonly<{}> & Omit<Readonly<ExtractPropTypes<RemoteProperties<UiPageHeaderProperties>>>, string> & {
|
|
1074
1068
|
[x: string]: unknown;
|
|
1075
|
-
}
|
|
1069
|
+
} & {
|
|
1076
1070
|
[x: string]: never;
|
|
1077
1071
|
} & {
|
|
1078
1072
|
[x: string]: unknown;
|
|
@@ -1139,9 +1133,7 @@ declare function __VLS_template_5(): {
|
|
|
1139
1133
|
$props: Partial<{}> & Omit<{
|
|
1140
1134
|
readonly [x: string]: any;
|
|
1141
1135
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>;
|
|
1142
|
-
$attrs:
|
|
1143
|
-
[x: string]: unknown;
|
|
1144
|
-
};
|
|
1136
|
+
$attrs: Attrs;
|
|
1145
1137
|
$refs: {
|
|
1146
1138
|
[x: string]: unknown;
|
|
1147
1139
|
};
|
|
@@ -1197,9 +1189,9 @@ declare function __VLS_template_5(): {
|
|
|
1197
1189
|
any,
|
|
1198
1190
|
OnCleanup
|
|
1199
1191
|
]) => any, options?: WatchOptions): WatchStopHandle;
|
|
1200
|
-
} & Readonly<{}> & Omit<Readonly<ExtractPropTypes<RemoteProperties<UiSelectPopperProperties>>>, string> &
|
|
1192
|
+
} & Readonly<{}> & Omit<Readonly<ExtractPropTypes<RemoteProperties<UiSelectPopperProperties>>>, string> & {
|
|
1201
1193
|
[x: string]: unknown;
|
|
1202
|
-
}
|
|
1194
|
+
} & {
|
|
1203
1195
|
[x: string]: never;
|
|
1204
1196
|
} & {
|
|
1205
1197
|
[x: string]: unknown;
|
|
@@ -3498,9 +3490,7 @@ export declare const UiRadioSwitchOption: __VLS_WithTemplateSlots_4<DefineCompon
|
|
|
3498
3490
|
$props: Partial<{}> & Omit<{
|
|
3499
3491
|
readonly [x: string]: any;
|
|
3500
3492
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>;
|
|
3501
|
-
$attrs:
|
|
3502
|
-
[x: string]: unknown;
|
|
3503
|
-
};
|
|
3493
|
+
$attrs: Attrs;
|
|
3504
3494
|
$refs: {
|
|
3505
3495
|
[x: string]: unknown;
|
|
3506
3496
|
};
|
|
@@ -3554,9 +3544,9 @@ export declare const UiRadioSwitchOption: __VLS_WithTemplateSlots_4<DefineCompon
|
|
|
3554
3544
|
any,
|
|
3555
3545
|
OnCleanup
|
|
3556
3546
|
]) => any, options?: WatchOptions): WatchStopHandle;
|
|
3557
|
-
} & Readonly<{}> & Omit<Readonly<ExtractPropTypes<RemoteProperties<UiRadioSwitchOptionShellProperties>>>, string> &
|
|
3547
|
+
} & Readonly<{}> & Omit<Readonly<ExtractPropTypes<RemoteProperties<UiRadioSwitchOptionShellProperties>>>, string> & {
|
|
3558
3548
|
[x: string]: unknown;
|
|
3559
|
-
}
|
|
3549
|
+
} & {
|
|
3560
3550
|
[x: string]: never;
|
|
3561
3551
|
} & {
|
|
3562
3552
|
[x: string]: unknown;
|
|
@@ -4948,9 +4938,7 @@ export declare const UiToggleGroupOption: __VLS_WithTemplateSlots_6<DefineCompon
|
|
|
4948
4938
|
$props: Partial<{}> & Omit<{
|
|
4949
4939
|
readonly [x: string]: any;
|
|
4950
4940
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>;
|
|
4951
|
-
$attrs:
|
|
4952
|
-
[x: string]: unknown;
|
|
4953
|
-
};
|
|
4941
|
+
$attrs: Attrs;
|
|
4954
4942
|
$refs: {
|
|
4955
4943
|
[x: string]: unknown;
|
|
4956
4944
|
};
|
|
@@ -5005,9 +4993,9 @@ export declare const UiToggleGroupOption: __VLS_WithTemplateSlots_6<DefineCompon
|
|
|
5005
4993
|
any,
|
|
5006
4994
|
OnCleanup
|
|
5007
4995
|
]) => any, options?: WatchOptions): WatchStopHandle;
|
|
5008
|
-
} & Readonly<{}> & Omit<Readonly<ExtractPropTypes<RemoteProperties<UiToggleButtonProperties>>>, string> &
|
|
4996
|
+
} & Readonly<{}> & Omit<Readonly<ExtractPropTypes<RemoteProperties<UiToggleButtonProperties>>>, string> & {
|
|
5009
4997
|
[x: string]: unknown;
|
|
5010
|
-
}
|
|
4998
|
+
} & {
|
|
5011
4999
|
[x: string]: never;
|
|
5012
5000
|
} & {
|
|
5013
5001
|
[x: string]: unknown;
|