@uzum-tech/ui 1.12.7 → 1.12.9

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/index.js CHANGED
@@ -29597,8 +29597,12 @@
29597
29597
  borderColor: "var(--u-border-color-hover)"
29598
29598
  })]), c$1("&:active", [cE("state-border", {
29599
29599
  borderColor: "var(--u-border-color-pressed)"
29600
+ })]), c$1("&:hover, &:active, &:focus", [cE("border", {
29601
+ borderColor: "transparent"
29600
29602
  })]), cM("pressed", [cE("state-border", {
29601
29603
  borderColor: "var(--u-border-color-pressed)"
29604
+ }), cE("border", {
29605
+ borderColor: "transparent"
29602
29606
  })])])]), cM("disabled", {
29603
29607
  backgroundColor: "var(--u-color-disabled)",
29604
29608
  color: "var(--u-text-color-disabled)"
@@ -29609,6 +29613,8 @@
29609
29613
  color: "var(--u-text-color-focus)"
29610
29614
  }, [cE("state-border", {
29611
29615
  border: "var(--u-border-focus)"
29616
+ }), cE("border", {
29617
+ borderColor: "transparent"
29612
29618
  })]), c$1("&:focus-visible", {
29613
29619
  backgroundColor: "var(--u-color)",
29614
29620
  color: "var(--u-text-color)",
@@ -29620,16 +29626,22 @@
29620
29626
  color: "var(--u-text-color-hover)"
29621
29627
  }, [cE("state-border", {
29622
29628
  border: "var(--u-border-hover)"
29629
+ }), cE("border", {
29630
+ borderColor: "transparent"
29623
29631
  })]), c$1("&:active", {
29624
29632
  backgroundColor: "var(--u-color-pressed)",
29625
29633
  color: "var(--u-text-color-pressed)"
29626
29634
  }, [cE("state-border", {
29627
29635
  border: "var(--u-border-pressed)"
29636
+ }), cE("border", {
29637
+ borderColor: "transparent"
29628
29638
  })]), cM("pressed", {
29629
29639
  backgroundColor: "var(--u-color-pressed)",
29630
29640
  color: "var(--u-text-color-pressed)"
29631
29641
  }, [cE("state-border", {
29632
29642
  border: "var(--u-border-pressed)"
29643
+ }), cE("border", {
29644
+ borderColor: "transparent"
29633
29645
  })])]), cM("loading", "cursor: wait;"), cE("loading", null, [cM("skeleton", {
29634
29646
  width: "calc(100% + 2px)",
29635
29647
  height: "calc(100% + 2px)",
@@ -56595,6 +56607,9 @@
56595
56607
  return (data) => {
56596
56608
  outerOnChange(data);
56597
56609
  attachmentFileList.value = [];
56610
+ void vue.nextTick(() => {
56611
+ scrollToBottom();
56612
+ });
56598
56613
  };
56599
56614
  }
56600
56615
  };
@@ -124751,6 +124766,7 @@
124751
124766
  left: 40%;
124752
124767
  transform: translateX(-40%);
124753
124768
  z-index: 1000;
124769
+ cursor: default;
124754
124770
  `), cE("tab-pane", `
124755
124771
  padding: 0;
124756
124772
  `), cE("menu-card", `
@@ -124763,7 +124779,7 @@
124763
124779
  `), cE("menu-column", `
124764
124780
  display: flex;
124765
124781
  flex-direction: column;
124766
- gap: 16px;
124782
+ gap: 32px;
124767
124783
  `, [cM("single", `
124768
124784
  gap: 8px;
124769
124785
  `)]), cE("menu-column-section", `
@@ -124778,6 +124794,9 @@
124778
124794
  font-size: var(--u-font-title-small);
124779
124795
  font-weight: 600;
124780
124796
  color: var(--u-header-card-title-color);
124797
+ cursor: text;
124798
+ `), cE('menu-column-title[role="button"]', `
124799
+ cursor: pointer;
124781
124800
  `), cE("menu-column-list", `
124782
124801
  display: flex;
124783
124802
  flex-direction: column;
@@ -125239,6 +125258,9 @@
125239
125258
  return placement;
125240
125259
  }
125241
125260
  }
125261
+ function isLeafMenuOption(option) {
125262
+ return option.type !== "column";
125263
+ }
125242
125264
 
125243
125265
  function useIsMobile() {
125244
125266
  const breakpointRef = useBreakpoint();
@@ -125433,6 +125455,15 @@
125433
125455
  );
125434
125456
  }
125435
125457
  if (isColumnOption(option)) {
125458
+ const children = option.children ?? [];
125459
+ const hasGroup = children.some(isGroupOption);
125460
+ if (!hasGroup) {
125461
+ const items = children.filter(isLeafMenuOption).map(
125462
+ (child, index) => renderMenuItem(child, `${key}-item-${index}`)
125463
+ ).filter(isNotNull);
125464
+ if (!items.length) return null;
125465
+ return /* @__PURE__ */ vue.h("div", { key, class: `${blockClass}__menu-column` }, /* @__PURE__ */ vue.h("div", { class: `${blockClass}__menu-column-list` }, items));
125466
+ }
125436
125467
  const sections = option.children?.map(
125437
125468
  (child, index) => renderMenuColumn(child, `${key}-section-${index}`, true)
125438
125469
  ) ?? [];
@@ -125441,15 +125472,53 @@
125441
125472
  return /* @__PURE__ */ vue.h("div", { key, class: `${blockClass}__menu-column` }, content);
125442
125473
  }
125443
125474
  if (isGroupOption(option)) {
125475
+ const hasChildren = option.children && option.children.length > 0;
125476
+ const onClick = "onClick" in option && typeof option.onClick === "function" ? option.onClick : void 0;
125477
+ if (!hasChildren) {
125478
+ return /* @__PURE__ */ vue.h("div", { key, class: `${blockClass}__menu-column-section` }, /* @__PURE__ */ vue.h(
125479
+ "div",
125480
+ {
125481
+ class: `${blockClass}__menu-column-title`,
125482
+ role: onClick ? "button" : void 0,
125483
+ tabindex: onClick && !option.disabled ? 0 : void 0,
125484
+ onClick: onClick ? (e) => {
125485
+ onClick();
125486
+ } : void 0
125487
+ },
125488
+ renderOptionLabel(option)
125489
+ ));
125490
+ }
125444
125491
  const children = option.children?.map(
125445
125492
  (child, index) => renderMenuItem(child, `${key}-item-${index}`)
125446
125493
  ) ?? [];
125447
125494
  const content = children.filter(isNotNull);
125448
125495
  if (!content.length) return null;
125449
125496
  if (asSection) {
125450
- return /* @__PURE__ */ vue.h("div", { key, class: `${blockClass}__menu-column-section` }, /* @__PURE__ */ vue.h("div", { class: `${blockClass}__menu-column-title` }, renderOptionLabel(option)), /* @__PURE__ */ vue.h("div", { class: `${blockClass}__menu-column-list` }, content));
125497
+ return /* @__PURE__ */ vue.h("div", { key, class: `${blockClass}__menu-column-section` }, /* @__PURE__ */ vue.h(
125498
+ "div",
125499
+ {
125500
+ class: `${blockClass}__menu-column-title`,
125501
+ role: onClick ? "button" : void 0,
125502
+ tabindex: onClick && !option.disabled ? 0 : void 0,
125503
+ onClick: onClick ? (e) => {
125504
+ onClick();
125505
+ } : void 0
125506
+ },
125507
+ renderOptionLabel(option)
125508
+ ), /* @__PURE__ */ vue.h("div", { class: `${blockClass}__menu-column-list` }, content));
125451
125509
  }
125452
- return /* @__PURE__ */ vue.h("div", { key, class: `${blockClass}__menu-column` }, /* @__PURE__ */ vue.h("div", { class: `${blockClass}__menu-column-title` }, renderOptionLabel(option)), /* @__PURE__ */ vue.h("div", { class: `${blockClass}__menu-column-list` }, content));
125510
+ return /* @__PURE__ */ vue.h("div", { key, class: `${blockClass}__menu-column` }, /* @__PURE__ */ vue.h(
125511
+ "div",
125512
+ {
125513
+ class: `${blockClass}__menu-column-title`,
125514
+ role: onClick ? "button" : void 0,
125515
+ tabindex: onClick && !option.disabled ? 0 : void 0,
125516
+ onClick: onClick ? (e) => {
125517
+ onClick();
125518
+ } : void 0
125519
+ },
125520
+ renderOptionLabel(option)
125521
+ ), /* @__PURE__ */ vue.h("div", { class: `${blockClass}__menu-column-list` }, content));
125453
125522
  }
125454
125523
  return /* @__PURE__ */ vue.h(
125455
125524
  "div",
@@ -128472,6 +128541,7 @@
128472
128541
  isColumnOption: isColumnOption,
128473
128542
  isDividerOption: isDividerOption,
128474
128543
  isGroupOption: isGroupOption,
128544
+ isLeafMenuOption: isLeafMenuOption,
128475
128545
  isNotNull: isNotNull,
128476
128546
  layoutContentProps: layoutProps,
128477
128547
  layoutFooterProps: layoutFooterProps,
@@ -128546,7 +128616,7 @@
128546
128616
  watermarkProps: watermarkProps
128547
128617
  });
128548
128618
 
128549
- var version = "1.12.7";
128619
+ var version = "1.12.9";
128550
128620
 
128551
128621
  function create({
128552
128622
  componentPrefix = "U",
@@ -129711,6 +129781,7 @@
129711
129781
  exports.isColumnOption = isColumnOption;
129712
129782
  exports.isDividerOption = isDividerOption;
129713
129783
  exports.isGroupOption = isGroupOption;
129784
+ exports.isLeafMenuOption = isLeafMenuOption;
129714
129785
  exports.isNotNull = isNotNull;
129715
129786
  exports.layoutContentProps = layoutProps;
129716
129787
  exports.layoutDark = layoutDark;