@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.
@@ -8284,7 +8284,8 @@ const XC = (function(n, t) {
8284
8284
  "textField",
8285
8285
  "showMore",
8286
8286
  "showEdit",
8287
- "border"
8287
+ "border",
8288
+ "displayMode"
8288
8289
  ],
8289
8290
  components: {
8290
8291
  TinyPopover: qe,
@@ -8301,7 +8302,7 @@ var FM = function() {
8301
8302
  var n = this, t = n.$createElement, e = n._self._c || t;
8302
8303
  return e("div", {
8303
8304
  staticClass: "tiny-button-group",
8304
- class: [n.size ? "tiny-button-group--" + n.size : "", n.border ? "" : "tiny-button-group--borderless"]
8305
+ class: [n.size ? "tiny-button-group--" + n.size : "", n.border ? "" : "tiny-button-group--borderless", n.displayMode === "merged" ? "tiny-button-group--merged" : ""]
8305
8306
  }, [n._t("default", function() {
8306
8307
  return [n.data.length > 0 ? [n.showMore && n.showMore > 0 ? e("ul", {
8307
8308
  staticClass: "tiny-group-item show-more"
@@ -8469,6 +8470,13 @@ var HM = function(t) {
8469
8470
  border: {
8470
8471
  type: Boolean,
8471
8472
  default: !0
8473
+ },
8474
+ displayMode: {
8475
+ type: String,
8476
+ default: "default",
8477
+ validator: function(t) {
8478
+ return ["default", "merged"].includes(t);
8479
+ }
8472
8480
  }
8473
8481
  });
8474
8482
  const Kn = D({
@@ -10487,19 +10495,32 @@ const HA = D({
10487
10495
  }]
10488
10496
  }, [d.title]), d.children ? s(d.children) : null])) : null, l = n("div", {
10489
10497
  class: `${o}-link-mask`,
10490
- ref: "maskRef"
10498
+ ref: "maskRef",
10499
+ attrs: {
10500
+ "aria-hidden": "true"
10501
+ }
10491
10502
  }), u = n("div", {
10492
- class: `${o}-orbit`
10503
+ class: `${o}-orbit`,
10504
+ attrs: {
10505
+ "aria-hidden": "true"
10506
+ }
10493
10507
  }, [n("div", {
10494
10508
  class: `${o}-orbit-skid`,
10495
- ref: "skidRef"
10509
+ ref: "skidRef",
10510
+ attrs: {
10511
+ "aria-hidden": "true"
10512
+ }
10496
10513
  })]);
10497
10514
  return n("div", {
10498
10515
  class: [t ? `${o}__affix` : "", `${o}__wrapper`, `tiny-anchor__${i}`],
10499
10516
  ref: "anchorWrapRef"
10500
10517
  }, [n("div", {
10501
10518
  class: o,
10502
- ref: "anchorRef"
10519
+ ref: "anchorRef",
10520
+ attrs: {
10521
+ role: "navigation",
10522
+ "aria-label": "Anchor"
10523
+ }
10503
10524
  }, [i === "line" && l, i === "line" && u, e && s(e)])]);
10504
10525
  }
10505
10526
  });
@@ -11677,7 +11698,7 @@ var A1 = ["blur", "showBox", "clear", "focus", "state", "select", "getInput", "h
11677
11698
  nextTick: l,
11678
11699
  state: c
11679
11700
  }),
11680
- resizeTextarea: Me(200, t1({
11701
+ resizeTextarea: Me(200, !0, t1({
11681
11702
  api: a,
11682
11703
  parent: u,
11683
11704
  vm: d,
@@ -15784,7 +15805,19 @@ const TR = D({
15784
15805
  on: {
15785
15806
  click: u
15786
15807
  }
15787
- }, [p ? n("span", [p]) : i.default && i.default(), o && n("icon-close", {
15808
+ }, [p ? n("span", {
15809
+ style: v ? {
15810
+ overflow: "hidden",
15811
+ textOverflow: "ellipsis",
15812
+ whiteSpace: "nowrap"
15813
+ } : {}
15814
+ }, [p]) : i.default && n("span", {
15815
+ style: v ? {
15816
+ overflow: "hidden",
15817
+ textOverflow: "ellipsis",
15818
+ whiteSpace: "nowrap"
15819
+ } : {}
15820
+ }, [i.default()]), o && n("icon-close", {
15788
15821
  class: "tiny-svg-size tiny-tag__close",
15789
15822
  on: {
15790
15823
  click: l
@@ -17604,17 +17637,14 @@ var vB = function() {
17604
17637
  click: e.toggleMenu
17605
17638
  }
17606
17639
  }, "div", e.a(e.$attrs, ["class", "style"], !0), !1), [r("div", {
17607
- directives: [{
17608
- name: "auto-tip",
17609
- rawName: "v-auto-tip",
17610
- value: e.state.rootAutoTipConfig,
17611
- expression: "state.rootAutoTipConfig"
17612
- }],
17613
17640
  ref: "tagsGroup",
17614
17641
  class: ["tiny-base-select__tags-group", {
17615
17642
  "is-expand": e.state.isExpand
17616
17643
  }],
17617
- style: e.state.selectFiexd
17644
+ style: e.state.selectFiexd,
17645
+ attrs: {
17646
+ title: e.state.rootAutoTipConfig
17647
+ }
17618
17648
  }, [e._t("reference", function() {
17619
17649
  return [e.shape === "filter" ? r("tiny-filter-box", {
17620
17650
  ref: "reference",
@@ -45465,7 +45495,8 @@ const Rp = D({
45465
45495
  var a, r = n.filterStore, i = r.targetElemParentTr, o = r.id, s = i && i.querySelector("svg.tiny-grid-filter__btn.".concat(o)), l = n.$el;
45466
45496
  l.style.zIndex = ce.nextZIndex(), n.popperJS = new FC(s, l, x({
45467
45497
  placement: "bottom-end",
45468
- gpuAcceleration: !1
45498
+ gpuAcceleration: !1,
45499
+ bubbling: !0
45469
45500
  }, ((a = n.$grid) === null || a === void 0 ? void 0 : a.filterPopperOptions) || {})), l.style.display = "block";
45470
45501
  });
45471
45502
  }),
@@ -60307,17 +60338,14 @@ var Dfe = function() {
60307
60338
  click: e.toggleMenu
60308
60339
  }
60309
60340
  }, [r("div", {
60310
- directives: [{
60311
- name: "auto-tip",
60312
- rawName: "v-auto-tip",
60313
- value: e.state.rootAutoTipConfig,
60314
- expression: "state.rootAutoTipConfig"
60315
- }],
60316
60341
  ref: "tagsGroup",
60317
60342
  class: ["tiny-select__tags-group", {
60318
60343
  "is-expand": e.state.isExpand
60319
60344
  }],
60320
- style: e.state.selectFiexd
60345
+ style: e.state.selectFiexd,
60346
+ attrs: {
60347
+ title: e.state.rootAutoTipConfig.content
60348
+ }
60321
60349
  }, [e._t("reference", function() {
60322
60350
  return [e.shape === "filter" ? r("tiny-filter-box", {
60323
60351
  ref: "reference",
@@ -82171,7 +82199,10 @@ var u$e = function() {
82171
82199
  class: ["tiny-link", "tiny-link--additional", n.type ? `tiny-link--${n.type}` : "", n.state.disabled && "is-disabled", n.underline && !n.state.disabled && "is-underline"],
82172
82200
  attrs: {
82173
82201
  href: n.state.disabled ? null : n.state.href,
82174
- rel: "noopener noreferrer"
82202
+ rel: "noopener noreferrer",
82203
+ "aria-disabled": n.state.disabled,
82204
+ tabindex: n.state.disabled ? -1 : void 0,
82205
+ "aria-label": n.$attrs["aria-label"] || n.value
82175
82206
  },
82176
82207
  on: {
82177
82208
  click: n.handleClick
@@ -82181,6 +82212,9 @@ var u$e = function() {
82181
82212
  staticClass: "tiny-svg-size tiny-link-svg",
82182
82213
  class: {
82183
82214
  "tiny-link-svg-only": !(n.slots.default || n.value)
82215
+ },
82216
+ attrs: {
82217
+ "aria-hidden": "true"
82184
82218
  }
82185
82219
  }) : n._e(), n.value ? e("span", {
82186
82220
  staticClass: "tiny-link__inner"
@@ -83145,7 +83179,11 @@ var IEe = function() {
83145
83179
  var n = this, t = n.$createElement, e = n._self._c || t;
83146
83180
  return e("div", {
83147
83181
  ref: "navMenu",
83148
- staticClass: "tiny-nav-menu"
83182
+ staticClass: "tiny-nav-menu",
83183
+ attrs: {
83184
+ role: "navigation",
83185
+ "aria-label": n.t("ui.navMenu.navigation")
83186
+ }
83149
83187
  }, [/^(retract|fixed)$/.test(n.overflow) ? e("div", {
83150
83188
  staticClass: "more-button",
83151
83189
  class: {
@@ -83160,17 +83198,27 @@ var IEe = function() {
83160
83198
  mouseleave: n.willHideSubMenu
83161
83199
  }
83162
83200
  }, [e(n.state.showMore ? "IconSandwichExpand" : "IconSandwichCollapse", {
83163
- tag: "component"
83201
+ tag: "component",
83202
+ attrs: {
83203
+ "aria-hidden": "true"
83204
+ }
83164
83205
  })], 1) : n._e(), n.slots.logo ? e("div", {
83165
83206
  staticClass: "slot-logo"
83166
83207
  }, [n._t("logo")], 2) : n._e(), e("div", {
83167
83208
  staticClass: "menu-container"
83168
83209
  }, [n.state.data && n.state.data.length ? e("ul", {
83169
83210
  staticClass: "menu",
83170
- style: n.state.isSaaSTheme ? {} : n.state.menuStyle
83211
+ style: n.state.isSaaSTheme ? {} : n.state.menuStyle,
83212
+ attrs: {
83213
+ role: "menubar",
83214
+ "aria-label": n.t("ui.navMenu.mainMenu")
83215
+ }
83171
83216
  }, n._l(n.state.data, function(a, r) {
83172
83217
  return e("li", {
83173
- key: r + (a.title || "")
83218
+ key: r + (a.title || ""),
83219
+ attrs: {
83220
+ role: "listitem"
83221
+ }
83174
83222
  }, [e(n.getTag(a), {
83175
83223
  tag: "component",
83176
83224
  class: {
@@ -83178,7 +83226,10 @@ var IEe = function() {
83178
83226
  selected: n.getTabSelected(a, r)
83179
83227
  },
83180
83228
  attrs: {
83181
- to: n.getRoute(a)
83229
+ to: n.getRoute(a),
83230
+ role: "menuitem",
83231
+ "aria-haspopup": a.children ? "true" : void 0,
83232
+ "aria-expanded": a.children ? n.state.showPopmenu && n.state.subIndex === r : void 0
83182
83233
  },
83183
83234
  on: {
83184
83235
  mouseenter: function(i) {
@@ -83234,6 +83285,10 @@ var IEe = function() {
83234
83285
  "show-left-menu": n.state.showMore
83235
83286
  }],
83236
83287
  style: n.state.popStyle,
83288
+ attrs: {
83289
+ role: "menu",
83290
+ "aria-label": n.t("ui.navMenu.subMenu")
83291
+ },
83237
83292
  on: {
83238
83293
  mouseenter: n.stopHideSubMenu,
83239
83294
  mouseleave: n.willHideSubMenu
@@ -83246,6 +83301,9 @@ var IEe = function() {
83246
83301
  class: {
83247
83302
  active: r === n.state.subActiveIndex,
83248
83303
  selected: n.getLeftSelected(a, r)
83304
+ },
83305
+ attrs: {
83306
+ role: "listitem"
83249
83307
  }
83250
83308
  }, [e(n.getTag(a), {
83251
83309
  tag: "component",
@@ -83253,7 +83311,9 @@ var IEe = function() {
83253
83311
  showicon: a.children
83254
83312
  },
83255
83313
  attrs: {
83256
- to: n.getRoute(a)
83314
+ to: n.getRoute(a),
83315
+ role: "menuitem",
83316
+ "aria-haspopup": a.children ? "true" : void 0
83257
83317
  },
83258
83318
  on: {
83259
83319
  mouseenter: function(i) {
@@ -83265,7 +83325,10 @@ var IEe = function() {
83265
83325
  }
83266
83326
  }
83267
83327
  }, [n._v(" " + n._s(a.title) + " ")]), a.children ? e("icon-chevron-right", {
83268
- staticClass: "more-icon"
83328
+ staticClass: "more-icon",
83329
+ attrs: {
83330
+ "aria-hidden": "true"
83331
+ }
83269
83332
  }) : n._e()], 1);
83270
83333
  }), 0)]) : n._e(), n.state.subMenus && n.state.subMenus.length ? e("div", {
83271
83334
  staticClass: "sub-menu",
@@ -83273,7 +83336,10 @@ var IEe = function() {
83273
83336
  "full-width": !n.state.showMore
83274
83337
  }
83275
83338
  }, [e("ul", {
83276
- staticClass: "sub-menu-ul"
83339
+ staticClass: "sub-menu-ul",
83340
+ attrs: {
83341
+ role: "menu"
83342
+ }
83277
83343
  }, n._l(n.state.subMenus, function(a, r) {
83278
83344
  return e("li", {
83279
83345
  key: r + (a.title || ""),
@@ -83285,14 +83351,18 @@ var IEe = function() {
83285
83351
  staticClass: "group"
83286
83352
  }, [e("li", {
83287
83353
  staticClass: "tiny-nav-menu__sub-menu-title",
83288
- class: a.title ? "" : "tiny-nav-menu__sub-menu-title-blank"
83354
+ class: a.title ? "" : "tiny-nav-menu__sub-menu-title-blank",
83355
+ attrs: {
83356
+ role: "none"
83357
+ }
83289
83358
  }, [e(n.getTag(a), {
83290
83359
  tag: "component",
83291
83360
  class: {
83292
83361
  selected: r === n.state.subIndex && n.state.subItemSelectedIndex === -1
83293
83362
  },
83294
83363
  attrs: {
83295
- to: n.getRoute(a)
83364
+ to: n.getRoute(a),
83365
+ role: "menuitem"
83296
83366
  },
83297
83367
  on: {
83298
83368
  click: function(i) {
@@ -83304,7 +83374,10 @@ var IEe = function() {
83304
83374
  mouseleave: n.handleTitleMouseleave
83305
83375
  }
83306
83376
  }, [n._v(" " + n._s(a.title) + " ")]), a.url ? e("icon-chevron-right", {
83307
- staticClass: "go-to-icon"
83377
+ staticClass: "go-to-icon",
83378
+ attrs: {
83379
+ "aria-hidden": "true"
83380
+ }
83308
83381
  }) : n._e()], 1), n._l(a.children, function(i, o) {
83309
83382
  return e("li", {
83310
83383
  key: o + (i.title || ""),
@@ -83312,6 +83385,9 @@ var IEe = function() {
83312
83385
  class: {
83313
83386
  "only-secondary-title": !a.title && !n.state.subMenu[o].children,
83314
83387
  "third-title": i.children && i.children.length
83388
+ },
83389
+ attrs: {
83390
+ role: "listitem"
83315
83391
  }
83316
83392
  }, [e(n.getTag(i), {
83317
83393
  tag: "component",
@@ -83319,21 +83395,30 @@ var IEe = function() {
83319
83395
  selected: n.getLastChildSelected(i, o, r)
83320
83396
  },
83321
83397
  attrs: {
83322
- to: n.getRoute(i)
83398
+ to: n.getRoute(i),
83399
+ role: "menuitem"
83323
83400
  },
83324
83401
  on: {
83325
83402
  click: function(s) {
83326
83403
  return n.clickMenu(i, o, r);
83327
83404
  }
83328
83405
  }
83329
- }, [n._v(" " + n._s(i.title) + " ")]), i.children && i.children.length ? e("ul", n._l(i.children, function(s, l) {
83406
+ }, [n._v(" " + n._s(i.title) + " ")]), i.children && i.children.length ? e("ul", {
83407
+ attrs: {
83408
+ role: "menu"
83409
+ }
83410
+ }, n._l(i.children, function(s, l) {
83330
83411
  return e("li", {
83331
83412
  key: l + (s.title || ""),
83332
- staticClass: "sub-item"
83413
+ staticClass: "sub-item",
83414
+ attrs: {
83415
+ role: "listitem"
83416
+ }
83333
83417
  }, [e(n.getTag(s), {
83334
83418
  tag: "component",
83335
83419
  attrs: {
83336
- to: n.getRoute(s)
83420
+ to: n.getRoute(s),
83421
+ role: "menuitem"
83337
83422
  },
83338
83423
  on: {
83339
83424
  click: function(u) {
@@ -92362,7 +92447,7 @@ const mi = D({
92362
92447
  template: IRe
92363
92448
  });
92364
92449
  }
92365
- }), ERe = "3.27.0";
92450
+ }), ERe = "3.29.0";
92366
92451
  mi.install = function(n) {
92367
92452
  n.component(mi.name, mi);
92368
92453
  };
@@ -95149,7 +95234,11 @@ var Aze = function() {
95149
95234
  },
95150
95235
  style: n.widthAdapt ? {
95151
95236
  width: "100%"
95152
- } : {}
95237
+ } : {},
95238
+ attrs: {
95239
+ role: "navigation",
95240
+ "aria-label": "Tree Menu"
95241
+ }
95153
95242
  }, [n.menuCollapsible ? e("div", {
95154
95243
  staticClass: "tiny-tree-menu__toggle-button",
95155
95244
  on: {
@@ -95161,6 +95250,7 @@ var Aze = function() {
95161
95250
  class: (n.state.isExpand || n.state.isCollapsed) && "is-hidden",
95162
95251
  attrs: {
95163
95252
  placeholder: n.placeholder || n.t("ui.treeMenu.placeholder"),
95253
+ "aria-label": n.placeholder || n.t("ui.treeMenu.placeholder"),
95164
95254
  "prefix-icon": n.searchIcon,
95165
95255
  clearable: n.state.clearable
95166
95256
  },
@@ -95182,6 +95272,8 @@ var Aze = function() {
95182
95272
  "only-check-children": n.onlyCheckChildren
95183
95273
  },
95184
95274
  attrs: {
95275
+ role: "tree",
95276
+ tabindex: "0",
95185
95277
  tiny_mode: "pc",
95186
95278
  theme: "tiny",
95187
95279
  accordion: n.accordion,
@@ -95239,9 +95331,15 @@ var Aze = function() {
95239
95331
  }, [e("span", {
95240
95332
  staticClass: "tree-node-name"
95241
95333
  }, [!i.customIcon && n.suffixIcon ? e(n.suffixIcon, {
95242
- tag: "component"
95334
+ tag: "component",
95335
+ attrs: {
95336
+ "aria-hidden": "true"
95337
+ }
95243
95338
  }) : n._e(), i.customIcon ? e(i.customIcon, {
95244
- tag: "component"
95339
+ tag: "component",
95340
+ attrs: {
95341
+ "aria-hidden": "true"
95342
+ }
95245
95343
  }) : n._e(), n._t("default", function() {
95246
95344
  return [n._v(n._s(i.label || r.label) + " ")];
95247
95345
  }, {