@opentinyvue/vue-runtime 3.29.0 → 3.29.1

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.
@@ -8465,7 +8465,8 @@ const a$ = (function(n, e) {
8465
8465
  "textField",
8466
8466
  "showMore",
8467
8467
  "showEdit",
8468
- "border"
8468
+ "border",
8469
+ "displayMode"
8469
8470
  ],
8470
8471
  components: {
8471
8472
  TinyPopover: Rt,
@@ -8482,7 +8483,7 @@ var Aj = function() {
8482
8483
  var n = this, e = n.$createElement, t = n._self._c || e;
8483
8484
  return t("div", {
8484
8485
  staticClass: "tiny-button-group",
8485
- class: [n.size ? "tiny-button-group--" + n.size : "", n.border ? "" : "tiny-button-group--borderless"]
8486
+ class: [n.size ? "tiny-button-group--" + n.size : "", n.border ? "" : "tiny-button-group--borderless", n.displayMode === "merged" ? "tiny-button-group--merged" : ""]
8486
8487
  }, [n._t("default", function() {
8487
8488
  return [n.data.length > 0 ? [n.showMore && n.showMore > 0 ? t("ul", {
8488
8489
  staticClass: "tiny-group-item show-more"
@@ -8650,6 +8651,13 @@ var Nj = function(e) {
8650
8651
  border: {
8651
8652
  type: Boolean,
8652
8653
  default: !0
8654
+ },
8655
+ displayMode: {
8656
+ type: String,
8657
+ default: "default",
8658
+ validator: function(e) {
8659
+ return ["default", "merged"].includes(e);
8660
+ }
8653
8661
  }
8654
8662
  });
8655
8663
  const Hi = D({
@@ -10957,7 +10965,7 @@ var cG = ["blur", "showBox", "clear", "focus", "state", "select", "getInput", "h
10957
10965
  nextTick: l,
10958
10966
  state: c
10959
10967
  }),
10960
- resizeTextarea: ot(200, NW({
10968
+ resizeTextarea: ot(200, !0, NW({
10961
10969
  api: r,
10962
10970
  parent: u,
10963
10971
  vm: d,
@@ -15622,7 +15630,19 @@ const kQ = D({
15622
15630
  on: {
15623
15631
  click: u
15624
15632
  }
15625
- }, [p ? n("span", [p]) : i.default && i.default(), o && n("icon-close", {
15633
+ }, [p ? n("span", {
15634
+ style: v ? {
15635
+ overflow: "hidden",
15636
+ textOverflow: "ellipsis",
15637
+ whiteSpace: "nowrap"
15638
+ } : {}
15639
+ }, [p]) : i.default && n("span", {
15640
+ style: v ? {
15641
+ overflow: "hidden",
15642
+ textOverflow: "ellipsis",
15643
+ whiteSpace: "nowrap"
15644
+ } : {}
15645
+ }, [i.default()]), o && n("icon-close", {
15626
15646
  class: "tiny-svg-size tiny-tag__close",
15627
15647
  on: {
15628
15648
  click: l
@@ -19716,7 +19736,8 @@ const CS = D({
19716
19736
  var r, a = n.filterStore, i = a.targetElemParentTr, o = a.id, s = i && i.querySelector("svg.tiny-grid-filter__btn.".concat(o)), l = n.$el;
19717
19737
  l.style.zIndex = Ue.nextZIndex(), n.popperJS = new jL(s, l, T({
19718
19738
  placement: "bottom-end",
19719
- gpuAcceleration: !1
19739
+ gpuAcceleration: !1,
19740
+ bubbling: !0
19720
19741
  }, ((r = n.$grid) === null || r === void 0 ? void 0 : r.filterPopperOptions) || {})), l.style.display = "block";
19721
19742
  });
19722
19743
  }),
@@ -32885,17 +32906,14 @@ var Yue = function() {
32885
32906
  click: t.toggleMenu
32886
32907
  }
32887
32908
  }, "div", t.a(t.$attrs, ["class", "style"], !0), !1), [a("div", {
32888
- directives: [{
32889
- name: "auto-tip",
32890
- rawName: "v-auto-tip",
32891
- value: t.state.rootAutoTipConfig,
32892
- expression: "state.rootAutoTipConfig"
32893
- }],
32894
32909
  ref: "tagsGroup",
32895
32910
  class: ["tiny-base-select__tags-group", {
32896
32911
  "is-expand": t.state.isExpand
32897
32912
  }],
32898
- style: t.state.selectFiexd
32913
+ style: t.state.selectFiexd,
32914
+ attrs: {
32915
+ title: t.state.rootAutoTipConfig
32916
+ }
32899
32917
  }, [t._t("reference", function() {
32900
32918
  return [t.shape === "filter" ? a("tiny-filter-box", {
32901
32919
  ref: "reference",
@@ -39610,17 +39628,14 @@ var ohe = function() {
39610
39628
  click: t.toggleMenu
39611
39629
  }
39612
39630
  }, [a("div", {
39613
- directives: [{
39614
- name: "auto-tip",
39615
- rawName: "v-auto-tip",
39616
- value: t.state.rootAutoTipConfig,
39617
- expression: "state.rootAutoTipConfig"
39618
- }],
39619
39631
  ref: "tagsGroup",
39620
39632
  class: ["tiny-select__tags-group", {
39621
39633
  "is-expand": t.state.isExpand
39622
39634
  }],
39623
- style: t.state.selectFiexd
39635
+ style: t.state.selectFiexd,
39636
+ attrs: {
39637
+ title: t.state.rootAutoTipConfig.content
39638
+ }
39624
39639
  }, [t._t("reference", function() {
39625
39640
  return [t.shape === "filter" ? a("tiny-filter-box", {
39626
39641
  ref: "reference",
@@ -51720,19 +51735,32 @@ const Pxe = D({
51720
51735
  }]
51721
51736
  }, [d.title]), d.children ? s(d.children) : null])) : null, l = n("div", {
51722
51737
  class: `${o}-link-mask`,
51723
- ref: "maskRef"
51738
+ ref: "maskRef",
51739
+ attrs: {
51740
+ "aria-hidden": "true"
51741
+ }
51724
51742
  }), u = n("div", {
51725
- class: `${o}-orbit`
51743
+ class: `${o}-orbit`,
51744
+ attrs: {
51745
+ "aria-hidden": "true"
51746
+ }
51726
51747
  }, [n("div", {
51727
51748
  class: `${o}-orbit-skid`,
51728
- ref: "skidRef"
51749
+ ref: "skidRef",
51750
+ attrs: {
51751
+ "aria-hidden": "true"
51752
+ }
51729
51753
  })]);
51730
51754
  return n("div", {
51731
51755
  class: [e ? `${o}__affix` : "", `${o}__wrapper`, `tiny-anchor__${i}`],
51732
51756
  ref: "anchorWrapRef"
51733
51757
  }, [n("div", {
51734
51758
  class: o,
51735
- ref: "anchorRef"
51759
+ ref: "anchorRef",
51760
+ attrs: {
51761
+ role: "navigation",
51762
+ "aria-label": "Anchor"
51763
+ }
51736
51764
  }, [i === "line" && l, i === "line" && u, t && s(t)])]);
51737
51765
  }
51738
51766
  });
@@ -102089,9 +102117,9 @@ var bat = function() {
102089
102117
  class: {
102090
102118
  fullscreen: n.state.isFullscreen
102091
102119
  },
102092
- style: {
102120
+ style: n.state.isFullscreen ? {
102093
102121
  "z-index": n.state.zIndex
102094
- }
102122
+ } : null
102095
102123
  }, [t("div", {
102096
102124
  ref: "editor",
102097
102125
  staticClass: "tiny-editor",
@@ -113184,7 +113212,10 @@ var jdt = function() {
113184
113212
  class: ["tiny-link", "tiny-link--additional", n.type ? `tiny-link--${n.type}` : "", n.state.disabled && "is-disabled", n.underline && !n.state.disabled && "is-underline"],
113185
113213
  attrs: {
113186
113214
  href: n.state.disabled ? null : n.state.href,
113187
- rel: "noopener noreferrer"
113215
+ rel: "noopener noreferrer",
113216
+ "aria-disabled": n.state.disabled,
113217
+ tabindex: n.state.disabled ? -1 : void 0,
113218
+ "aria-label": n.$attrs["aria-label"] || n.value
113188
113219
  },
113189
113220
  on: {
113190
113221
  click: n.handleClick
@@ -113194,6 +113225,9 @@ var jdt = function() {
113194
113225
  staticClass: "tiny-svg-size tiny-link-svg",
113195
113226
  class: {
113196
113227
  "tiny-link-svg-only": !(n.slots.default || n.value)
113228
+ },
113229
+ attrs: {
113230
+ "aria-hidden": "true"
113197
113231
  }
113198
113232
  }) : n._e(), n.value ? t("span", {
113199
113233
  staticClass: "tiny-link__inner"
@@ -117931,7 +117965,11 @@ var ygt = function() {
117931
117965
  var n = this, e = n.$createElement, t = n._self._c || e;
117932
117966
  return t("div", {
117933
117967
  ref: "navMenu",
117934
- staticClass: "tiny-nav-menu"
117968
+ staticClass: "tiny-nav-menu",
117969
+ attrs: {
117970
+ role: "navigation",
117971
+ "aria-label": n.t("ui.navMenu.navigation")
117972
+ }
117935
117973
  }, [/^(retract|fixed)$/.test(n.overflow) ? t("div", {
117936
117974
  staticClass: "more-button",
117937
117975
  class: {
@@ -117946,17 +117984,27 @@ var ygt = function() {
117946
117984
  mouseleave: n.willHideSubMenu
117947
117985
  }
117948
117986
  }, [t(n.state.showMore ? "IconSandwichExpand" : "IconSandwichCollapse", {
117949
- tag: "component"
117987
+ tag: "component",
117988
+ attrs: {
117989
+ "aria-hidden": "true"
117990
+ }
117950
117991
  })], 1) : n._e(), n.slots.logo ? t("div", {
117951
117992
  staticClass: "slot-logo"
117952
117993
  }, [n._t("logo")], 2) : n._e(), t("div", {
117953
117994
  staticClass: "menu-container"
117954
117995
  }, [n.state.data && n.state.data.length ? t("ul", {
117955
117996
  staticClass: "menu",
117956
- style: n.state.isSaaSTheme ? {} : n.state.menuStyle
117997
+ style: n.state.isSaaSTheme ? {} : n.state.menuStyle,
117998
+ attrs: {
117999
+ role: "menubar",
118000
+ "aria-label": n.t("ui.navMenu.mainMenu")
118001
+ }
117957
118002
  }, n._l(n.state.data, function(r, a) {
117958
118003
  return t("li", {
117959
- key: a + (r.title || "")
118004
+ key: a + (r.title || ""),
118005
+ attrs: {
118006
+ role: "listitem"
118007
+ }
117960
118008
  }, [t(n.getTag(r), {
117961
118009
  tag: "component",
117962
118010
  class: {
@@ -117964,7 +118012,10 @@ var ygt = function() {
117964
118012
  selected: n.getTabSelected(r, a)
117965
118013
  },
117966
118014
  attrs: {
117967
- to: n.getRoute(r)
118015
+ to: n.getRoute(r),
118016
+ role: "menuitem",
118017
+ "aria-haspopup": r.children ? "true" : void 0,
118018
+ "aria-expanded": r.children ? n.state.showPopmenu && n.state.subIndex === a : void 0
117968
118019
  },
117969
118020
  on: {
117970
118021
  mouseenter: function(i) {
@@ -118020,6 +118071,10 @@ var ygt = function() {
118020
118071
  "show-left-menu": n.state.showMore
118021
118072
  }],
118022
118073
  style: n.state.popStyle,
118074
+ attrs: {
118075
+ role: "menu",
118076
+ "aria-label": n.t("ui.navMenu.subMenu")
118077
+ },
118023
118078
  on: {
118024
118079
  mouseenter: n.stopHideSubMenu,
118025
118080
  mouseleave: n.willHideSubMenu
@@ -118032,6 +118087,9 @@ var ygt = function() {
118032
118087
  class: {
118033
118088
  active: a === n.state.subActiveIndex,
118034
118089
  selected: n.getLeftSelected(r, a)
118090
+ },
118091
+ attrs: {
118092
+ role: "listitem"
118035
118093
  }
118036
118094
  }, [t(n.getTag(r), {
118037
118095
  tag: "component",
@@ -118039,7 +118097,9 @@ var ygt = function() {
118039
118097
  showicon: r.children
118040
118098
  },
118041
118099
  attrs: {
118042
- to: n.getRoute(r)
118100
+ to: n.getRoute(r),
118101
+ role: "menuitem",
118102
+ "aria-haspopup": r.children ? "true" : void 0
118043
118103
  },
118044
118104
  on: {
118045
118105
  mouseenter: function(i) {
@@ -118051,7 +118111,10 @@ var ygt = function() {
118051
118111
  }
118052
118112
  }
118053
118113
  }, [n._v(" " + n._s(r.title) + " ")]), r.children ? t("icon-chevron-right", {
118054
- staticClass: "more-icon"
118114
+ staticClass: "more-icon",
118115
+ attrs: {
118116
+ "aria-hidden": "true"
118117
+ }
118055
118118
  }) : n._e()], 1);
118056
118119
  }), 0)]) : n._e(), n.state.subMenus && n.state.subMenus.length ? t("div", {
118057
118120
  staticClass: "sub-menu",
@@ -118059,7 +118122,10 @@ var ygt = function() {
118059
118122
  "full-width": !n.state.showMore
118060
118123
  }
118061
118124
  }, [t("ul", {
118062
- staticClass: "sub-menu-ul"
118125
+ staticClass: "sub-menu-ul",
118126
+ attrs: {
118127
+ role: "menu"
118128
+ }
118063
118129
  }, n._l(n.state.subMenus, function(r, a) {
118064
118130
  return t("li", {
118065
118131
  key: a + (r.title || ""),
@@ -118071,14 +118137,18 @@ var ygt = function() {
118071
118137
  staticClass: "group"
118072
118138
  }, [t("li", {
118073
118139
  staticClass: "tiny-nav-menu__sub-menu-title",
118074
- class: r.title ? "" : "tiny-nav-menu__sub-menu-title-blank"
118140
+ class: r.title ? "" : "tiny-nav-menu__sub-menu-title-blank",
118141
+ attrs: {
118142
+ role: "none"
118143
+ }
118075
118144
  }, [t(n.getTag(r), {
118076
118145
  tag: "component",
118077
118146
  class: {
118078
118147
  selected: a === n.state.subIndex && n.state.subItemSelectedIndex === -1
118079
118148
  },
118080
118149
  attrs: {
118081
- to: n.getRoute(r)
118150
+ to: n.getRoute(r),
118151
+ role: "menuitem"
118082
118152
  },
118083
118153
  on: {
118084
118154
  click: function(i) {
@@ -118090,7 +118160,10 @@ var ygt = function() {
118090
118160
  mouseleave: n.handleTitleMouseleave
118091
118161
  }
118092
118162
  }, [n._v(" " + n._s(r.title) + " ")]), r.url ? t("icon-chevron-right", {
118093
- staticClass: "go-to-icon"
118163
+ staticClass: "go-to-icon",
118164
+ attrs: {
118165
+ "aria-hidden": "true"
118166
+ }
118094
118167
  }) : n._e()], 1), n._l(r.children, function(i, o) {
118095
118168
  return t("li", {
118096
118169
  key: o + (i.title || ""),
@@ -118098,6 +118171,9 @@ var ygt = function() {
118098
118171
  class: {
118099
118172
  "only-secondary-title": !r.title && !n.state.subMenu[o].children,
118100
118173
  "third-title": i.children && i.children.length
118174
+ },
118175
+ attrs: {
118176
+ role: "listitem"
118101
118177
  }
118102
118178
  }, [t(n.getTag(i), {
118103
118179
  tag: "component",
@@ -118105,21 +118181,30 @@ var ygt = function() {
118105
118181
  selected: n.getLastChildSelected(i, o, a)
118106
118182
  },
118107
118183
  attrs: {
118108
- to: n.getRoute(i)
118184
+ to: n.getRoute(i),
118185
+ role: "menuitem"
118109
118186
  },
118110
118187
  on: {
118111
118188
  click: function(s) {
118112
118189
  return n.clickMenu(i, o, a);
118113
118190
  }
118114
118191
  }
118115
- }, [n._v(" " + n._s(i.title) + " ")]), i.children && i.children.length ? t("ul", n._l(i.children, function(s, l) {
118192
+ }, [n._v(" " + n._s(i.title) + " ")]), i.children && i.children.length ? t("ul", {
118193
+ attrs: {
118194
+ role: "menu"
118195
+ }
118196
+ }, n._l(i.children, function(s, l) {
118116
118197
  return t("li", {
118117
118198
  key: l + (s.title || ""),
118118
- staticClass: "sub-item"
118199
+ staticClass: "sub-item",
118200
+ attrs: {
118201
+ role: "listitem"
118202
+ }
118119
118203
  }, [t(n.getTag(s), {
118120
118204
  tag: "component",
118121
118205
  attrs: {
118122
- to: n.getRoute(s)
118206
+ to: n.getRoute(s),
118207
+ role: "menuitem"
118123
118208
  },
118124
118209
  on: {
118125
118210
  click: function(u) {
@@ -133267,7 +133352,7 @@ const $u = D({
133267
133352
  template: Y_t
133268
133353
  });
133269
133354
  }
133270
- }), X_t = "3.27.0";
133355
+ }), X_t = "3.29.0";
133271
133356
  $u.install = function(n) {
133272
133357
  n.component($u.name, $u);
133273
133358
  };
@@ -136441,7 +136526,11 @@ var hMt = function() {
136441
136526
  },
136442
136527
  style: n.widthAdapt ? {
136443
136528
  width: "100%"
136444
- } : {}
136529
+ } : {},
136530
+ attrs: {
136531
+ role: "navigation",
136532
+ "aria-label": "Tree Menu"
136533
+ }
136445
136534
  }, [n.menuCollapsible ? t("div", {
136446
136535
  staticClass: "tiny-tree-menu__toggle-button",
136447
136536
  on: {
@@ -136453,6 +136542,7 @@ var hMt = function() {
136453
136542
  class: (n.state.isExpand || n.state.isCollapsed) && "is-hidden",
136454
136543
  attrs: {
136455
136544
  placeholder: n.placeholder || n.t("ui.treeMenu.placeholder"),
136545
+ "aria-label": n.placeholder || n.t("ui.treeMenu.placeholder"),
136456
136546
  "prefix-icon": n.searchIcon,
136457
136547
  clearable: n.state.clearable
136458
136548
  },
@@ -136474,6 +136564,8 @@ var hMt = function() {
136474
136564
  "only-check-children": n.onlyCheckChildren
136475
136565
  },
136476
136566
  attrs: {
136567
+ role: "tree",
136568
+ tabindex: "0",
136477
136569
  tiny_mode: "pc",
136478
136570
  theme: "tiny",
136479
136571
  accordion: n.accordion,
@@ -136531,9 +136623,15 @@ var hMt = function() {
136531
136623
  }, [t("span", {
136532
136624
  staticClass: "tree-node-name"
136533
136625
  }, [!i.customIcon && n.suffixIcon ? t(n.suffixIcon, {
136534
- tag: "component"
136626
+ tag: "component",
136627
+ attrs: {
136628
+ "aria-hidden": "true"
136629
+ }
136535
136630
  }) : n._e(), i.customIcon ? t(i.customIcon, {
136536
- tag: "component"
136631
+ tag: "component",
136632
+ attrs: {
136633
+ "aria-hidden": "true"
136634
+ }
136537
136635
  }) : n._e(), n._t("default", function() {
136538
136636
  return [n._v(n._s(i.label || a.label) + " ")];
136539
136637
  }, {
@@ -1115,7 +1115,12 @@ const Bn = {
1115
1115
  show: "显示侧边栏"
1116
1116
  },
1117
1117
  navMenu: {
1118
- moreText: "更多"
1118
+ moreText: "更多",
1119
+ navigation: "导航",
1120
+ mainMenu: "主菜单",
1121
+ subMenu: "子菜单",
1122
+ expand: "展开菜单",
1123
+ collapse: "收起菜单"
1119
1124
  },
1120
1125
  logout: {
1121
1126
  in: "登录",