@retailcrm/embed-ui-v1-components 0.9.18 → 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.
Files changed (82) hide show
  1. package/AGENTS.md +8 -0
  2. package/README.md +5 -1
  3. package/bin/embed-ui-v1-components.mjs +32 -24
  4. package/bin/postinstall.mjs +2 -2
  5. package/dist/host.cjs +19 -13
  6. package/dist/host.css +8 -10
  7. package/dist/host.d.ts +52 -58
  8. package/dist/host.js +19 -13
  9. package/dist/remote.cjs +110 -100
  10. package/dist/remote.d.ts +30 -36
  11. package/dist/remote.js +110 -100
  12. package/docs/AGENT-DESIGN-GUIDELINES.md +463 -0
  13. package/docs/AI.md +89 -6
  14. package/docs/FORMAT.md +11 -9
  15. package/docs/PROFILES.md +9 -5
  16. package/docs/README.md +14 -5
  17. package/docs/assets/page-guidelines/card-settings-page.png +0 -0
  18. package/docs/assets/page-guidelines/collapse-block-page.png +0 -0
  19. package/docs/assets/page-guidelines/entity-list-page.png +0 -0
  20. package/docs/assets/page-guidelines/modal-sidebar.png +0 -0
  21. package/docs/assets/page-guidelines/modal-window.png +0 -0
  22. package/docs/assets/page-guidelines/multi-column-page.png +0 -0
  23. package/docs/profiles/UiAddButton.yml +30 -0
  24. package/docs/profiles/UiAlert.yml +27 -0
  25. package/docs/profiles/UiAvatar.yml +26 -0
  26. package/docs/profiles/UiAvatarList.yml +28 -0
  27. package/docs/profiles/UiButton.yml +1 -8
  28. package/docs/profiles/UiCalendar.yml +28 -0
  29. package/docs/profiles/UiCheckbox.yml +32 -0
  30. package/docs/profiles/UiCollapse.yml +34 -0
  31. package/docs/profiles/UiCollapseBox.yml +30 -0
  32. package/docs/profiles/UiCollapseGroup.yml +26 -0
  33. package/docs/profiles/UiCopyButton.yml +35 -0
  34. package/docs/profiles/UiDate.yml +28 -0
  35. package/docs/profiles/UiDatePicker.yml +30 -0
  36. package/docs/profiles/UiError.yml +45 -0
  37. package/docs/profiles/UiField.yml +1 -15
  38. package/docs/profiles/UiImage.yml +28 -0
  39. package/docs/profiles/UiInfobox.yml +33 -0
  40. package/docs/profiles/UiLink.yml +40 -0
  41. package/docs/profiles/UiLoader.yml +35 -0
  42. package/docs/profiles/UiMenuItem.yml +38 -0
  43. package/docs/profiles/UiMenuItemGroup.yml +27 -0
  44. package/docs/profiles/UiModalSidebar.yml +32 -0
  45. package/docs/profiles/UiModalWindow.yml +42 -0
  46. package/docs/profiles/UiModalWindowSurface.yml +32 -0
  47. package/docs/profiles/UiNumberStepper.yml +36 -0
  48. package/docs/profiles/UiPageHeader.yml +1 -23
  49. package/docs/profiles/UiPopper.yml +1 -13
  50. package/docs/profiles/UiPopperConnector.yml +7 -25
  51. package/docs/profiles/UiPopperTarget.yml +7 -25
  52. package/docs/profiles/UiRadio.yml +40 -0
  53. package/docs/profiles/UiRadioSwitch.yml +1 -32
  54. package/docs/profiles/UiRadioSwitchOption.yml +9 -13
  55. package/docs/profiles/UiScrollBox.yml +34 -0
  56. package/docs/profiles/UiSelect.yml +1 -44
  57. package/docs/profiles/UiSelectOption.yml +32 -0
  58. package/docs/profiles/UiSelectOptionGroup.yml +30 -0
  59. package/docs/profiles/UiSkeleton.yml +32 -0
  60. package/docs/profiles/UiSlider.yml +40 -0
  61. package/docs/profiles/UiSwitch.yml +38 -0
  62. package/docs/profiles/UiTab.yml +7 -16
  63. package/docs/profiles/UiTabGroup.yml +1 -30
  64. package/docs/profiles/UiTable.yml +148 -0
  65. package/docs/profiles/UiTableBodyCell.yml +28 -0
  66. package/docs/profiles/UiTableColumn.yml +39 -0
  67. package/docs/profiles/UiTableFooterButton.yml +43 -0
  68. package/docs/profiles/UiTableFooterSection.yml +37 -0
  69. package/docs/profiles/UiTableHeadCell.yml +28 -0
  70. package/docs/profiles/UiTableSorter.yml +29 -0
  71. package/docs/profiles/UiTag.yml +38 -0
  72. package/docs/profiles/UiTextbox.yml +1 -32
  73. package/docs/profiles/UiTimePicker.yml +40 -0
  74. package/docs/profiles/UiToggleButton.yml +1 -11
  75. package/docs/profiles/UiToggleGroup.yml +1 -13
  76. package/docs/profiles/UiToggleGroupOption.yml +9 -11
  77. package/docs/profiles/UiToolbarButton.yml +37 -0
  78. package/docs/profiles/UiToolbarLink.yml +37 -0
  79. package/docs/profiles/UiTooltip.yml +38 -0
  80. package/docs/profiles/UiTransition.yml +37 -0
  81. package/docs/profiles/UiYandexMap.yml +53 -0
  82. 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: inputReadonly.value,
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$1 = {
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$1, [
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 = { class: "ui-v1-page-header__main" };
408
- const _hoisted_2$2 = {
407
+ const _hoisted_1$5 = {
409
408
  key: 0,
410
- class: "ui-v1-page-header__addon"
409
+ class: "ui-v1-page-header__actions"
411
410
  };
412
- const _hoisted_3$2 = {
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-header__actions"
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.createElementVNode("div", _hoisted_1$5, [
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: "test"
2315
+ default: ""
2313
2316
  },
2314
2317
  /** Отображает иконку сброса введённого или выбранного значения в виде крестика */
2315
2318
  clearable: {
@@ -2413,7 +2416,9 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
2413
2416
  default: false
2414
2417
  }
2415
2418
  },
2416
- setup(__props) {
2419
+ emits: ["change", "update:value"],
2420
+ setup(__props, { emit: __emit }) {
2421
+ const emit = __emit;
2417
2422
  const props = __props;
2418
2423
  const state = vue.reactive({
2419
2424
  expanded: props.expanded,
@@ -2442,6 +2447,11 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
2442
2447
  const equals = (a, b) => props.equalsFn(a, b);
2443
2448
  const contains = (array, value) => array.some((v) => equals(v, value));
2444
2449
  const navigableOptions = vue.computed(() => optionsRegistry.value.filter((option) => option.isMatched() && !option.disabled));
2450
+ const setValue = (value) => {
2451
+ state.value = value;
2452
+ emit("change", value);
2453
+ emit("update:value", value);
2454
+ };
2445
2455
  vue.provide(RegisterKey, (option) => {
2446
2456
  if (optionsRegistry.value.some((item) => item.id === option.id)) {
2447
2457
  throw new Error(`[UiSelect] Component with id ${option.id} already registered. Unregister it before using again.`);
@@ -2474,12 +2484,12 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
2474
2484
  } else {
2475
2485
  model.push(value);
2476
2486
  }
2477
- state.value = model;
2487
+ setValue(model);
2478
2488
  if (!props.multiple) {
2479
2489
  close();
2480
2490
  }
2481
2491
  } else {
2482
- state.value = value;
2492
+ setValue(value);
2483
2493
  close();
2484
2494
  }
2485
2495
  });
@@ -2533,9 +2543,9 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
2533
2543
  } else {
2534
2544
  model.push(option.value);
2535
2545
  }
2536
- state.value = model;
2546
+ setValue(model);
2537
2547
  } else {
2538
- state.value = option.value;
2548
+ setValue(option.value);
2539
2549
  close();
2540
2550
  }
2541
2551
  };
@@ -2664,7 +2674,7 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
2664
2674
  }, _ctx.$attrs, {
2665
2675
  onInput,
2666
2676
  onKeydown: onKeyDown,
2667
- "onUpdate:value": _cache[0] || (_cache[0] = ($event) => state.value = $event),
2677
+ "onUpdate:value": _cache[0] || (_cache[0] = ($event) => setValue($event)),
2668
2678
  "onUpdate:expanded": _cache[1] || (_cache[1] = ($event) => state.expanded = $event)
2669
2679
  }), null, 16, ["id", "value", "multiple", "selection", "filter", "filterable", "clearable", "expanded", "invalid", "disabled", "readonly", "placeholder-only", "placeholder", "textbox-size", "width", "active-descendant"]),
2670
2680
  vue.createVNode(vue.unref(UiSelectPopper), {
@@ -3104,7 +3114,7 @@ const mountEndpointRoot = async (channel) => {
3104
3114
  await root.mount();
3105
3115
  return root;
3106
3116
  };
3107
- const ImageWorkersKey = Symbol("$image.workers");
3117
+ const ImageWorkersKey = /* @__PURE__ */ Symbol("$image.workers");
3108
3118
  const usePreview = (workers = vue.ref([])) => {
3109
3119
  const _workers = vue.inject(ImageWorkersKey, workers);
3110
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> & ShallowUnwrapRef<{
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;
@@ -643,7 +641,10 @@ declare const __VLS_component_5: DefineComponent<ExtractPropTypes<{
643
641
  type: BooleanConstructor;
644
642
  default: boolean;
645
643
  };
646
- }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
644
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
645
+ change: (value: unknown) => any;
646
+ "update:value": (value: unknown) => any;
647
+ }, string, PublicProps, Readonly<ExtractPropTypes<{
647
648
  /** Атрибут id корневого элемента выпадающего списка. Должен быть уникальным на странице */
648
649
  id: {
649
650
  type: StringConstructor;
@@ -759,7 +760,10 @@ declare const __VLS_component_5: DefineComponent<ExtractPropTypes<{
759
760
  type: BooleanConstructor;
760
761
  default: boolean;
761
762
  };
762
- }>> & Readonly<{}>, {
763
+ }>> & Readonly<{
764
+ onChange?: ((value: unknown) => any) | undefined;
765
+ "onUpdate:value"?: ((value: unknown) => any) | undefined;
766
+ }>, {
763
767
  id: string;
764
768
  placeholder: string;
765
769
  disabled: boolean;
@@ -789,9 +793,7 @@ declare const __VLS_component_5: DefineComponent<ExtractPropTypes<{
789
793
  $props: Partial<{}> & Omit<{
790
794
  readonly [x: string]: any;
791
795
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>;
792
- $attrs: {
793
- [x: string]: unknown;
794
- };
796
+ $attrs: Attrs;
795
797
  $refs: {
796
798
  [x: string]: unknown;
797
799
  };
@@ -842,14 +844,14 @@ declare const __VLS_component_5: DefineComponent<ExtractPropTypes<{
842
844
  R,
843
845
  R,
844
846
  OnCleanup
845
- ]) => any : (... /** @type { [typeof __VLS_components.UiPopperConnector, typeof __VLS_components.UiPopperConnector, ] } */args: [
847
+ ]) => any : (...args: [
846
848
  any,
847
849
  any,
848
850
  OnCleanup
849
851
  ]) => any, options?: WatchOptions): WatchStopHandle;
850
- } & Readonly<{}> & Omit<Readonly<ExtractPropTypes<RemoteProperties<UiSelectPopperProperties>>>, string> & ShallowUnwrapRef<{
852
+ } & Readonly<{}> & Omit<Readonly<ExtractPropTypes<RemoteProperties<UiSelectPopperProperties>>>, string> & {
851
853
  [x: string]: unknown;
852
- }> & {
854
+ } & {
853
855
  [x: string]: never;
854
856
  } & {
855
857
  [x: string]: unknown;
@@ -995,8 +997,8 @@ declare function __VLS_template(): {
995
997
  declare function __VLS_template_2(): {
996
998
  attrs: Partial<{}>;
997
999
  slots: {
998
- addon?(_: {}): any;
999
1000
  actions?(_: {}): any;
1001
+ addon?(_: {}): any;
1000
1002
  };
1001
1003
  refs: {
1002
1004
  header: ({
@@ -1007,9 +1009,7 @@ declare function __VLS_template_2(): {
1007
1009
  $props: Partial<{}> & Omit<{
1008
1010
  readonly [x: string]: any;
1009
1011
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>;
1010
- $attrs: {
1011
- [x: string]: unknown;
1012
- };
1012
+ $attrs: Attrs;
1013
1013
  $refs: {
1014
1014
  [x: string]: unknown;
1015
1015
  };
@@ -1064,9 +1064,9 @@ declare function __VLS_template_2(): {
1064
1064
  any,
1065
1065
  OnCleanup
1066
1066
  ]) => any, options?: WatchOptions): WatchStopHandle;
1067
- } & Readonly<{}> & Omit<Readonly<ExtractPropTypes<RemoteProperties<UiPageHeaderProperties>>>, string> & ShallowUnwrapRef<{
1067
+ } & Readonly<{}> & Omit<Readonly<ExtractPropTypes<RemoteProperties<UiPageHeaderProperties>>>, string> & {
1068
1068
  [x: string]: unknown;
1069
- }> & {
1069
+ } & {
1070
1070
  [x: string]: never;
1071
1071
  } & {
1072
1072
  [x: string]: unknown;
@@ -1133,9 +1133,7 @@ declare function __VLS_template_5(): {
1133
1133
  $props: Partial<{}> & Omit<{
1134
1134
  readonly [x: string]: any;
1135
1135
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>;
1136
- $attrs: {
1137
- [x: string]: unknown;
1138
- };
1136
+ $attrs: Attrs;
1139
1137
  $refs: {
1140
1138
  [x: string]: unknown;
1141
1139
  };
@@ -1186,14 +1184,14 @@ declare function __VLS_template_5(): {
1186
1184
  R,
1187
1185
  R,
1188
1186
  OnCleanup
1189
- ]) => any : (... /** @type { [typeof __VLS_components.UiPopperConnector, typeof __VLS_components.UiPopperConnector, ] } */args: [
1187
+ ]) => any : (...args: [
1190
1188
  any,
1191
1189
  any,
1192
1190
  OnCleanup
1193
1191
  ]) => any, options?: WatchOptions): WatchStopHandle;
1194
- } & Readonly<{}> & Omit<Readonly<ExtractPropTypes<RemoteProperties<UiSelectPopperProperties>>>, string> & ShallowUnwrapRef<{
1192
+ } & Readonly<{}> & Omit<Readonly<ExtractPropTypes<RemoteProperties<UiSelectPopperProperties>>>, string> & {
1195
1193
  [x: string]: unknown;
1196
- }> & {
1194
+ } & {
1197
1195
  [x: string]: never;
1198
1196
  } & {
1199
1197
  [x: string]: unknown;
@@ -3492,9 +3490,7 @@ export declare const UiRadioSwitchOption: __VLS_WithTemplateSlots_4<DefineCompon
3492
3490
  $props: Partial<{}> & Omit<{
3493
3491
  readonly [x: string]: any;
3494
3492
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>;
3495
- $attrs: {
3496
- [x: string]: unknown;
3497
- };
3493
+ $attrs: Attrs;
3498
3494
  $refs: {
3499
3495
  [x: string]: unknown;
3500
3496
  };
@@ -3548,9 +3544,9 @@ export declare const UiRadioSwitchOption: __VLS_WithTemplateSlots_4<DefineCompon
3548
3544
  any,
3549
3545
  OnCleanup
3550
3546
  ]) => any, options?: WatchOptions): WatchStopHandle;
3551
- } & Readonly<{}> & Omit<Readonly<ExtractPropTypes<RemoteProperties<UiRadioSwitchOptionShellProperties>>>, string> & ShallowUnwrapRef<{
3547
+ } & Readonly<{}> & Omit<Readonly<ExtractPropTypes<RemoteProperties<UiRadioSwitchOptionShellProperties>>>, string> & {
3552
3548
  [x: string]: unknown;
3553
- }> & {
3549
+ } & {
3554
3550
  [x: string]: never;
3555
3551
  } & {
3556
3552
  [x: string]: unknown;
@@ -4942,9 +4938,7 @@ export declare const UiToggleGroupOption: __VLS_WithTemplateSlots_6<DefineCompon
4942
4938
  $props: Partial<{}> & Omit<{
4943
4939
  readonly [x: string]: any;
4944
4940
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>;
4945
- $attrs: {
4946
- [x: string]: unknown;
4947
- };
4941
+ $attrs: Attrs;
4948
4942
  $refs: {
4949
4943
  [x: string]: unknown;
4950
4944
  };
@@ -4999,9 +4993,9 @@ export declare const UiToggleGroupOption: __VLS_WithTemplateSlots_6<DefineCompon
4999
4993
  any,
5000
4994
  OnCleanup
5001
4995
  ]) => any, options?: WatchOptions): WatchStopHandle;
5002
- } & Readonly<{}> & Omit<Readonly<ExtractPropTypes<RemoteProperties<UiToggleButtonProperties>>>, string> & ShallowUnwrapRef<{
4996
+ } & Readonly<{}> & Omit<Readonly<ExtractPropTypes<RemoteProperties<UiToggleButtonProperties>>>, string> & {
5003
4997
  [x: string]: unknown;
5004
- }> & {
4998
+ } & {
5005
4999
  [x: string]: never;
5006
5000
  } & {
5007
5001
  [x: string]: unknown;