@sdata/web-vue 2.2.1 → 2.6.0

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 (205) hide show
  1. package/README.md +1 -1
  2. package/dist/sd.css +117 -191
  3. package/dist/sd.min.css +1 -1
  4. package/es/_components/picker/input-range.vue.d.ts +2 -2
  5. package/es/_components/transition/expand-transition.vue.d.ts +2 -2
  6. package/es/_hooks/use-responsive.d.ts +2 -2
  7. package/es/_hooks/use-theme-mode.d.ts +3 -0
  8. package/es/{calendar/hooks/use-calendar-theme.js → _hooks/use-theme-mode.js} +14 -10
  9. package/es/_utils/date.d.ts +10 -9
  10. package/es/_utils/date.js +23 -7
  11. package/es/_utils/responsive-observe.d.ts +5 -4
  12. package/es/_utils/responsive-observe.js +2 -1
  13. package/es/alert/index.d.ts +3 -3
  14. package/es/anchor/anchor.vue.d.ts +52 -2
  15. package/es/anchor/anchor.vue_vue_type_script_setup_true_lang.js +75 -15
  16. package/es/anchor/index.d.ts +78 -3
  17. package/es/avatar/index.d.ts +20 -20
  18. package/es/border-beam/border-beam.js +5 -0
  19. package/es/border-beam/border-beam.vue.d.ts +52 -0
  20. package/es/border-beam/border-beam.vue_vue_type_script_setup_true_lang.js +623 -0
  21. package/es/border-beam/index.d.ts +106 -0
  22. package/es/border-beam/index.js +10 -0
  23. package/es/border-beam/pulseDriver.d.ts +2 -0
  24. package/es/border-beam/pulseDriver.js +74 -0
  25. package/es/border-beam/style/css.js +2 -0
  26. package/es/border-beam/style/index.css +21 -0
  27. package/es/border-beam/style/index.d.ts +2 -0
  28. package/es/border-beam/style/index.js +2 -0
  29. package/es/border-beam/style/index.scss +12 -0
  30. package/es/border-beam/style/token.scss +12 -0
  31. package/es/border-beam/styles.d.ts +42 -0
  32. package/es/border-beam/styles.js +3545 -0
  33. package/es/border-beam/types.d.ts +27 -0
  34. package/es/button/button.vue.d.ts +16 -3
  35. package/es/button/button.vue_vue_type_script_setup_true_lang.js +39 -9
  36. package/es/button/index.d.ts +43 -24
  37. package/es/button/interface.d.ts +1 -0
  38. package/es/calendar/components/cell.vue.d.ts +26 -26
  39. package/es/calendar/components/index.vue.d.ts +1 -1
  40. package/es/calendar/components/index.vue_vue_type_script_setup_true_lang.js +3 -2
  41. package/es/calendar/index.d.ts +5 -5
  42. package/es/carousel/index.d.ts +3 -3
  43. package/es/cascader/cascader.vue.d.ts +8 -8
  44. package/es/checkbox/checkbox.d.ts +3 -3
  45. package/es/collapse/collapse-item.d.ts +5 -5
  46. package/es/collapse/index.d.ts +3 -3
  47. package/es/components.d.ts +1 -0
  48. package/es/config-provider/config-provider.vue.d.ts +9 -0
  49. package/es/config-provider/config-provider.vue_vue_type_script_setup_true_lang.js +10 -1
  50. package/es/config-provider/context.d.ts +1 -0
  51. package/es/config-provider/index.d.ts +36 -21
  52. package/es/copy/copy.vue_vue_type_script_setup_true_lang.js +1 -0
  53. package/es/date-picker/hooks/use-cell-class-name.d.ts +1 -0
  54. package/es/date-picker/hooks/use-cell-class-name.js +3 -2
  55. package/es/date-picker/hooks/use-header-value.d.ts +2 -0
  56. package/es/date-picker/hooks/use-header-value.js +23 -19
  57. package/es/date-picker/hooks/use-picker-state.d.ts +2 -0
  58. package/es/date-picker/hooks/use-picker-state.js +3 -3
  59. package/es/date-picker/hooks/use-range-header-value.d.ts +2 -0
  60. package/es/date-picker/hooks/use-range-header-value.js +5 -1
  61. package/es/date-picker/hooks/use-range-picker-state.d.ts +2 -0
  62. package/es/date-picker/hooks/use-range-picker-state.js +3 -3
  63. package/es/date-picker/hooks/use-value-format.d.ts +5 -3
  64. package/es/date-picker/hooks/use-value-format.js +10 -8
  65. package/es/date-picker/index.d.ts +1373 -12
  66. package/es/date-picker/interface.d.ts +7 -0
  67. package/es/date-picker/panels/body.vue.d.ts +24 -6
  68. package/es/date-picker/panels/body.vue_vue_type_script_setup_true_lang.js +13 -12
  69. package/es/date-picker/panels/date/index.vue.d.ts +26 -8
  70. package/es/date-picker/panels/date/index.vue_vue_type_script_setup_true_lang.js +18 -9
  71. package/es/date-picker/panels/header.vue_vue_type_script_setup_true_lang.js +13 -20
  72. package/es/date-picker/panels/month/index.vue.d.ts +13 -8
  73. package/es/date-picker/panels/month/index.vue_vue_type_script_setup_true_lang.js +6 -6
  74. package/es/date-picker/panels/quarter/index.vue.d.ts +13 -8
  75. package/es/date-picker/panels/quarter/index.vue_vue_type_script_setup_true_lang.js +6 -6
  76. package/es/date-picker/panels/shortcuts.vue_vue_type_script_setup_true_lang.js +2 -6
  77. package/es/date-picker/panels/week/index.vue.d.ts +13 -1
  78. package/es/date-picker/panels/week/index.vue_vue_type_script_setup_true_lang.js +5 -2
  79. package/es/date-picker/panels/year/index.vue.d.ts +13 -8
  80. package/es/date-picker/panels/year/index.vue_vue_type_script_setup_true_lang.js +25 -15
  81. package/es/date-picker/picker-panel.vue.d.ts +56 -14
  82. package/es/date-picker/picker-panel.vue_vue_type_script_setup_true_lang.js +36 -19
  83. package/es/date-picker/picker.vue.d.ts +951 -3
  84. package/es/date-picker/picker.vue_vue_type_script_setup_true_lang.js +91 -29
  85. package/es/date-picker/range-picker-panel.vue.d.ts +77 -15
  86. package/es/date-picker/range-picker-panel.vue_vue_type_script_setup_true_lang.js +52 -28
  87. package/es/date-picker/range-picker.vue.d.ts +1348 -4
  88. package/es/date-picker/range-picker.vue_vue_type_script_setup_true_lang.js +114 -34
  89. package/es/descriptions/index.d.ts +24 -24
  90. package/es/drawer/drawer.vue.d.ts +5 -5
  91. package/es/drawer/index.d.ts +15 -15
  92. package/es/dropdown/dropdown-button.vue.d.ts +4 -4
  93. package/es/dropdown/index.d.ts +15 -15
  94. package/es/ellipsis/ellipsis.vue.d.ts +7 -7
  95. package/es/ellipsis/performant-ellipsis.vue.d.ts +5 -5
  96. package/es/form/form-item.vue_vue_type_script_setup_true_lang.js +3 -3
  97. package/es/form/index.d.ts +3 -3
  98. package/es/grid/grid-col.vue_vue_type_script_setup_true_lang.js +2 -2
  99. package/es/grid/grid.vue_vue_type_script_setup_true_lang.js +10 -10
  100. package/es/icon/icon-menu/icon-menu.js +5 -0
  101. package/es/icon/icon-menu/icon-menu.vue_vue_type_script_setup_true_lang.js +52 -0
  102. package/es/icon/icon-menu/index.js +9 -0
  103. package/es/image/preview-toolbar.vue.d.ts +2 -3
  104. package/es/image/preview-toolbar.vue_vue_type_script_setup_true_lang.js +2 -3
  105. package/es/image/preview.vue.d.ts +2 -2
  106. package/es/index.css +117 -191
  107. package/es/index.d.ts +3 -1
  108. package/es/index.js +3 -2
  109. package/es/index.scss +1 -0
  110. package/es/input/index.d.ts +7 -7
  111. package/es/input/input-password.vue.d.ts +3 -3
  112. package/es/json-form/index.d.ts +9 -9
  113. package/es/json-form/json-form-item.vue_vue_type_script_setup_true_lang.js +1 -1
  114. package/es/json-form/json-form.vue.d.ts +3 -3
  115. package/es/layout/content.vue.d.ts +2 -2
  116. package/es/layout/content.vue_vue_type_script_setup_true_lang.js +8 -3
  117. package/es/layout/context.d.ts +12 -9
  118. package/es/layout/context.js +11 -3
  119. package/es/layout/footer.vue.d.ts +2 -2
  120. package/es/layout/footer.vue_vue_type_script_setup_true_lang.js +8 -3
  121. package/es/layout/header.vue.d.ts +3 -30
  122. package/es/layout/header.vue_vue_type_script_setup_true_lang.js +9 -339
  123. package/es/layout/hooks/use-has-sider.d.ts +2 -0
  124. package/es/layout/hooks/use-has-sider.js +38 -0
  125. package/es/layout/index.d.ts +91 -380
  126. package/es/layout/index.js +2 -2
  127. package/es/layout/interface.d.ts +12 -46
  128. package/es/layout/layout.vue.d.ts +4 -2
  129. package/es/layout/layout.vue_vue_type_script_setup_true_lang.js +38 -14
  130. package/es/layout/sider.vue.d.ts +47 -183
  131. package/es/layout/sider.vue_vue_type_script_setup_true_lang.js +191 -370
  132. package/es/layout/style/index.css +112 -190
  133. package/es/layout/style/index.scss +127 -239
  134. package/es/layout/style/token.scss +46 -26
  135. package/es/link/index.d.ts +6 -6
  136. package/es/list/index.d.ts +18 -18
  137. package/es/locale/interface.d.ts +2 -0
  138. package/es/locale/lang/ar-eg.js +46 -0
  139. package/es/locale/lang/de-de.js +46 -0
  140. package/es/locale/lang/es-es.js +46 -0
  141. package/es/locale/lang/fr-fr.js +46 -0
  142. package/es/locale/lang/id-id.js +46 -0
  143. package/es/locale/lang/it-it.js +46 -0
  144. package/es/locale/lang/km-kh.js +46 -0
  145. package/es/locale/lang/ko-kr.js +46 -0
  146. package/es/locale/lang/ms-my.js +46 -0
  147. package/es/locale/lang/pt-pt.js +46 -0
  148. package/es/locale/lang/th-th.js +46 -0
  149. package/es/locale/lang/vi-vn.js +46 -0
  150. package/es/mention/mention.js +2 -0
  151. package/es/menu/base-menu.vue.d.ts +1 -1
  152. package/es/menu/base-menu.vue_vue_type_script_setup_true_lang.js +14 -14
  153. package/es/menu/item.d.ts +1 -1
  154. package/es/menu/menu.d.ts +12 -12
  155. package/es/menu/menu.js +3 -3
  156. package/es/menu/sub-menu-pop.vue_vue_type_script_setup_true_lang.js +3 -4
  157. package/es/modal/index.d.ts +22 -20
  158. package/es/modal/index.js +47 -11
  159. package/es/modal/interface.d.ts +5 -0
  160. package/es/modal/modal.vue.d.ts +4 -4
  161. package/es/popconfirm/index.d.ts +12 -12
  162. package/es/popover/index.d.ts +12 -12
  163. package/es/progress/index.d.ts +6 -6
  164. package/es/qr-code/index.d.ts +3 -3
  165. package/es/radio/radio.d.ts +3 -3
  166. package/es/resize-box/resize-box.vue.d.ts +4 -4
  167. package/es/resize-box/resize-box.vue_vue_type_script_setup_true_lang.js +7 -7
  168. package/es/result/index.d.ts +3 -3
  169. package/es/scrollbar/style/index.css +1 -1
  170. package/es/scrollbar/style/index.scss +4 -1
  171. package/es/sd-vue.js +3 -1
  172. package/es/select/select.d.ts +17 -17
  173. package/es/slider/index.d.ts +3 -3
  174. package/es/split/split.vue.d.ts +4 -4
  175. package/es/split/split.vue_vue_type_script_setup_true_lang.js +6 -6
  176. package/es/steps/index.d.ts +6 -6
  177. package/es/tabs/index.d.ts +6 -6
  178. package/es/tag/index.d.ts +6 -6
  179. package/es/tag/tag.vue.d.ts +2 -2
  180. package/es/textarea/textarea.vue_vue_type_script_setup_true_lang.js +4 -4
  181. package/es/theme-provider/index.d.ts +9 -9
  182. package/es/time-picker/index.d.ts +6 -6
  183. package/es/time-picker/time-picker.vue.d.ts +2 -2
  184. package/es/timeline/index.d.ts +3 -3
  185. package/es/timeline/timeline.d.ts +1 -1
  186. package/es/tooltip/index.d.ts +3 -3
  187. package/es/tour/index.d.ts +3 -3
  188. package/es/tour/tour.vue_vue_type_script_setup_true_lang.js +6 -6
  189. package/es/tree/base-node.vue_vue_type_script_setup_true_lang.js +6 -21
  190. package/es/tree/expand-transition.vue.d.ts +2 -2
  191. package/es/tree/node-switcher.vue.d.ts +1 -12
  192. package/es/tree/node-switcher.vue_vue_type_script_lang.js +1 -5
  193. package/es/tree/tree.vue_vue_type_script_setup_true_lang.js +23 -23
  194. package/es/tree-select/tree-select.vue.d.ts +9 -9
  195. package/es/trigger/trigger.js +2 -1
  196. package/es/verification-code/verification-code.js +17 -7
  197. package/json/vetur-attributes.json +76 -156
  198. package/json/vetur-tags.json +26 -44
  199. package/json/web-types.json +150 -304
  200. package/package.json +5 -5
  201. package/es/_components/render-function.d.ts +0 -14
  202. package/es/_components/render-function.js +0 -14
  203. package/es/calendar/hooks/use-calendar-theme.d.ts +0 -4
  204. package/es/layout/utils.d.ts +0 -1
  205. package/es/layout/utils.js +0 -11
@@ -313,7 +313,7 @@ var tree_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCompo
313
313
  loadMore,
314
314
  draggable
315
315
  }));
316
- const { checkedKeys, indeterminateKeys, setCheckedState } = useCheckedState(reactive({
316
+ const { checkedKeys: mergedCheckedKeys, indeterminateKeys, setCheckedState } = useCheckedState(reactive({
317
317
  defaultCheckedKeys,
318
318
  checkedKeys: propCheckedKeys,
319
319
  checkStrictly,
@@ -321,7 +321,7 @@ var tree_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCompo
321
321
  halfCheckedKeys,
322
322
  onlyCheckLeaf
323
323
  }));
324
- const [selectedKeys, setSelectedState] = useMergeState((defaultSelectedKeys === null || defaultSelectedKeys === void 0 ? void 0 : defaultSelectedKeys.value) || [], reactive({ value: propSelectedKeys }));
324
+ const [mergedSelectedKeys, setMergedSelectedKeys] = useMergeState((defaultSelectedKeys === null || defaultSelectedKeys === void 0 ? void 0 : defaultSelectedKeys.value) || [], reactive({ value: propSelectedKeys }));
325
325
  const loadingKeys = ref([]);
326
326
  const dragNode = ref();
327
327
  function getDefaultExpandedKeys() {
@@ -345,20 +345,20 @@ var tree_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCompo
345
345
  (node.pathParentKeys || []).forEach((k) => expandedKeysSet.add(k));
346
346
  });
347
347
  };
348
- if (defaultExpandSelected.value) addToExpandKeysSet(selectedKeys.value);
349
- if (defaultExpandChecked.value) addToExpandKeysSet(checkedKeys.value);
348
+ if (defaultExpandSelected.value) addToExpandKeysSet(mergedSelectedKeys.value);
349
+ if (defaultExpandChecked.value) addToExpandKeysSet(mergedCheckedKeys.value);
350
350
  return [...expandedKeysSet];
351
351
  }
352
352
  return [];
353
353
  }
354
- const [expandedKeys, setExpandState] = useMergeState(getDefaultExpandedKeys(), reactive({ value: propExpandedKeys }));
355
- watch(() => expandedKeys.value.join(","), () => {
354
+ const [mergedExpandedKeys, setExpandState] = useMergeState(getDefaultExpandedKeys(), reactive({ value: propExpandedKeys }));
355
+ watch(() => mergedExpandedKeys.value.join(","), () => {
356
356
  if (!virtualListProps.value || enableVirtualExpandAnimation.value) return;
357
357
  virtualListVersion.value += 1;
358
358
  });
359
359
  const currentExpandKeys = ref([]);
360
360
  const visibleTreeNodeList = computed(() => {
361
- const expandedKeysSet = new Set(expandedKeys.value);
361
+ const expandedKeysSet = new Set(mergedExpandedKeys.value);
362
362
  const currentExpandKeysSet = new Set(currentExpandKeys.value);
363
363
  const filteredNodeList = flattenTreeData.value.filter((node) => {
364
364
  var _node$pathParentKeys;
@@ -441,7 +441,7 @@ var tree_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCompo
441
441
  function setSelectedKeys(keys) {
442
442
  let newSelectedKeys = keys;
443
443
  if (!multiple.value && keys.length > 1) newSelectedKeys = [keys[0]];
444
- setSelectedState(newSelectedKeys);
444
+ setMergedSelectedKeys(newSelectedKeys);
445
445
  emitSelectEvent({ newSelectedKeys });
446
446
  }
447
447
  function setExpandedKeys(keys) {
@@ -451,7 +451,7 @@ var tree_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCompo
451
451
  }
452
452
  function checkNodes(keys, checked, targetKey) {
453
453
  if (!keys.length) return;
454
- let newCheckedKeys = [...checkedKeys.value];
454
+ let newCheckedKeys = [...mergedCheckedKeys.value];
455
455
  let newIndeterminateKeys = [...indeterminateKeys.value];
456
456
  keys.forEach((key) => {
457
457
  const node = key2TreeNode.value.get(key);
@@ -475,13 +475,13 @@ var tree_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCompo
475
475
  if (!keys.length) return;
476
476
  let newSelectedKeys;
477
477
  if (multiple.value) {
478
- const selectedKeysSet = new Set(selectedKeys.value);
478
+ const selectedKeysSet = new Set(mergedSelectedKeys.value);
479
479
  keys.forEach((key) => {
480
480
  selected ? selectedKeysSet.add(key) : selectedKeysSet.delete(key);
481
481
  });
482
482
  newSelectedKeys = [...selectedKeysSet];
483
483
  } else newSelectedKeys = selected ? [keys[0]] : [];
484
- setSelectedState(newSelectedKeys);
484
+ setMergedSelectedKeys(newSelectedKeys);
485
485
  emitSelectEvent({
486
486
  targetKey,
487
487
  targetSelected: isUndefined(targetKey) ? void 0 : selected,
@@ -489,7 +489,7 @@ var tree_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCompo
489
489
  });
490
490
  }
491
491
  function expandNodes(keys, expanded, targetKey) {
492
- const expandedKeysSet = new Set(expandedKeys.value);
492
+ const expandedKeysSet = new Set(mergedExpandedKeys.value);
493
493
  keys.forEach((key) => {
494
494
  expanded ? expandedKeysSet.add(key) : expandedKeysSet.delete(key);
495
495
  onExpandEnd(key);
@@ -508,7 +508,7 @@ var tree_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCompo
508
508
  const [newCheckedKeys, newIndeterminateKeys] = getCheckedStateByCheck({
509
509
  node,
510
510
  checked,
511
- checkedKeys: checkedKeys.value,
511
+ checkedKeys: mergedCheckedKeys.value,
512
512
  indeterminateKeys: indeterminateKeys.value,
513
513
  checkStrictly: checkStrictly.value
514
514
  });
@@ -526,7 +526,7 @@ var tree_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCompo
526
526
  let newSelectedKeys;
527
527
  let selected;
528
528
  if (multiple.value) {
529
- const selectedKeysSet = new Set(selectedKeys.value);
529
+ const selectedKeysSet = new Set(mergedSelectedKeys.value);
530
530
  selected = !selectedKeysSet.has(key);
531
531
  selected ? selectedKeysSet.add(key) : selectedKeysSet.delete(key);
532
532
  newSelectedKeys = [...selectedKeysSet];
@@ -534,7 +534,7 @@ var tree_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCompo
534
534
  selected = true;
535
535
  newSelectedKeys = [key];
536
536
  }
537
- setSelectedState(newSelectedKeys);
537
+ setMergedSelectedKeys(newSelectedKeys);
538
538
  emitSelectEvent({
539
539
  targetKey: key,
540
540
  targetSelected: selected,
@@ -545,7 +545,7 @@ var tree_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCompo
545
545
  function onExpand(expanded, key, e) {
546
546
  if (currentExpandKeys.value.includes(key)) return;
547
547
  if (!key2TreeNode.value.get(key)) return;
548
- const expandedKeysSet = new Set(expandedKeys.value);
548
+ const expandedKeysSet = new Set(mergedExpandedKeys.value);
549
549
  expanded ? expandedKeysSet.add(key) : expandedKeysSet.delete(key);
550
550
  const newExpandedKeys = [...expandedKeysSet];
551
551
  setExpandState(newExpandedKeys);
@@ -572,10 +572,10 @@ var tree_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCompo
572
572
  treeData,
573
573
  flattenTreeData,
574
574
  key2TreeNode,
575
- checkedKeys,
575
+ checkedKeys: mergedCheckedKeys,
576
576
  indeterminateKeys,
577
- selectedKeys,
578
- expandedKeys,
577
+ selectedKeys: mergedSelectedKeys,
578
+ expandedKeys: mergedExpandedKeys,
579
579
  loadingKeys,
580
580
  currentExpandKeys,
581
581
  onLoadMore: computed(() => (loadMore === null || loadMore === void 0 ? void 0 : loadMore.value) ? function() {
@@ -589,7 +589,7 @@ var tree_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCompo
589
589
  yield loadMore.value(treeNodeData);
590
590
  loadingKeys.value = loadingKeys.value.filter((v) => v !== key);
591
591
  onExpand(true, key);
592
- if (checkedKeys.value.includes(key)) onCheck(true, key);
592
+ if (mergedCheckedKeys.value.includes(key)) onCheck(true, key);
593
593
  } catch (err) {
594
594
  loadingKeys.value = loadingKeys.value.filter((v) => v !== key);
595
595
  console.error("[tree]load data error: ", err);
@@ -664,7 +664,7 @@ var tree_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCompo
664
664
  * @version 2.19.0
665
665
  */
666
666
  function getSelectedNodes() {
667
- return getNodes(selectedKeys.value);
667
+ return getNodes(mergedSelectedKeys.value);
668
668
  }
669
669
  /**
670
670
  * @zh 获取选中复选框的节点。支持传入 `checkedStrategy`,没有传则取组件的配置。
@@ -676,7 +676,7 @@ var tree_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCompo
676
676
  */
677
677
  function getCheckedNodes(options = {}) {
678
678
  const { checkedStrategy, includeHalfChecked } = options;
679
- return [...getNodes(getPublicCheckedKeys(checkedKeys.value, checkedStrategy)), ...includeHalfChecked ? getHalfCheckedNodes() : []];
679
+ return [...getNodes(getPublicCheckedKeys(mergedCheckedKeys.value, checkedStrategy)), ...includeHalfChecked ? getHalfCheckedNodes() : []];
680
680
  }
681
681
  /**
682
682
  * @zh 获取复选框半选的节点
@@ -696,7 +696,7 @@ var tree_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCompo
696
696
  * @version 2.19.0
697
697
  */
698
698
  function getExpandedNodes() {
699
- return getNodes(expandedKeys.value);
699
+ return getNodes(mergedExpandedKeys.value);
700
700
  }
701
701
  /**
702
702
  * @zh 设置全部节点的复选框状态
@@ -5,25 +5,25 @@ import { ScrollbarProps } from '../scrollbar';
5
5
  import { TreeFieldNames, TreeNodeData, TreeProps } from '../tree/interface';
6
6
  import { TriggerProps } from '../trigger';
7
7
  import { LabelValue, TreeSelectValue } from './interface';
8
- declare var __VLS_10: {}, __VLS_26: {}, __VLS_29: any, __VLS_32: {
8
+ declare var __VLS_10: {}, __VLS_23: {}, __VLS_26: any, __VLS_29: {
9
9
  data: any;
10
- }, __VLS_35: {}, __VLS_37: {}, __VLS_44: {}, __VLS_58: {};
10
+ }, __VLS_32: {}, __VLS_34: {}, __VLS_41: {}, __VLS_55: {};
11
11
  type __VLS_Slots = {} & {
12
12
  trigger?: (props: typeof __VLS_10) => any;
13
13
  } & {
14
- prefix?: (props: typeof __VLS_26) => any;
14
+ prefix?: (props: typeof __VLS_23) => any;
15
15
  } & {
16
- label?: (props: typeof __VLS_29) => any;
16
+ label?: (props: typeof __VLS_26) => any;
17
17
  } & {
18
- tag?: (props: typeof __VLS_32) => any;
18
+ tag?: (props: typeof __VLS_29) => any;
19
19
  } & {
20
- header?: (props: typeof __VLS_35) => any;
20
+ header?: (props: typeof __VLS_32) => any;
21
21
  } & {
22
- loader?: (props: typeof __VLS_37) => any;
22
+ loader?: (props: typeof __VLS_34) => any;
23
23
  } & {
24
- empty?: (props: typeof __VLS_44) => any;
24
+ empty?: (props: typeof __VLS_41) => any;
25
25
  } & {
26
- footer?: (props: typeof __VLS_58) => any;
26
+ footer?: (props: typeof __VLS_55) => any;
27
27
  };
28
28
  declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
29
29
  disabled: {
@@ -513,6 +513,7 @@ var trigger_default = /* @__PURE__ */ defineComponent({
513
513
  var _firstElement$value, _popupRef$value;
514
514
  if (((_firstElement$value = firstElement.value) === null || _firstElement$value === void 0 ? void 0 : _firstElement$value.contains(e.target)) || ((_popupRef$value = popupRef.value) === null || _popupRef$value === void 0 ? void 0 : _popupRef$value.contains(e.target))) return;
515
515
  for (const item of childrenRefs) {
516
+ if (!item) continue;
516
517
  const element = "value" in item ? item.value : item;
517
518
  if (element === null || element === void 0 ? void 0 : element.contains(e.target)) return;
518
519
  }
@@ -554,7 +555,7 @@ var trigger_default = /* @__PURE__ */ defineComponent({
554
555
  const handlePopupMouseDown = (e) => {
555
556
  if (props.preventFocus) e.preventDefault();
556
557
  };
557
- triggerCtx === null || triggerCtx === void 0 || triggerCtx.addChildRef(popupRef.value);
558
+ if (popupRef.value) triggerCtx === null || triggerCtx === void 0 || triggerCtx.addChildRef(popupRef.value);
558
559
  const triggerCls = computed(() => {
559
560
  return computedVisible.value ? props.openedClass : void 0;
560
561
  });
@@ -1,5 +1,5 @@
1
1
  import { getPrefixCls } from "../_utils/global-config.js";
2
- import { isExist, isFunction, isString } from "../_utils/is.js";
2
+ import { isExist, isFunction, isString, isUndefined } from "../_utils/is.js";
3
3
  import { ArrowLeft, ArrowRight, Backspace } from "../_utils/keycode.js";
4
4
  import Input from "../input/index.js";
5
5
  import { Fragment, computed, createVNode, defineComponent, mergeProps, ref, watch } from "vue";
@@ -121,11 +121,20 @@ var verification_code_default = /* @__PURE__ */ defineComponent({
121
121
  };
122
122
  const handleFocus = (index) => inputRefList === null || inputRefList === void 0 ? void 0 : inputRefList.value[index].focus();
123
123
  const focusFirstEmptyInput = (index) => {
124
- if (isExist(index) && innerValue.value[index]) return;
125
- for (let i = 0; i < innerValue.value.length; i++) if (!innerValue.value[i]) {
126
- handleFocus(i);
127
- break;
128
- }
124
+ const values = innerValue.value;
125
+ const len = values.length;
126
+ if (!isUndefined(index) && values[index]) return;
127
+ const firstEmpty = values.findIndex((v) => !v);
128
+ handleFocus(firstEmpty === -1 ? len - 1 : firstEmpty);
129
+ };
130
+ const handleCursorToEnd = (e, i) => {
131
+ if (!innerValue.value[i]) return;
132
+ const target = e.target;
133
+ if (!(target === null || target === void 0 ? void 0 : target.setSelectionRange)) return;
134
+ e.preventDefault();
135
+ target.focus();
136
+ const end = target.value.length;
137
+ target.setSelectionRange(end, end);
129
138
  };
130
139
  const handlePaste = (e, index) => {
131
140
  e.preventDefault();
@@ -188,7 +197,8 @@ var verification_code_default = /* @__PURE__ */ defineComponent({
188
197
  "onInput": (v, e) => handleInput(i, v, e)
189
198
  }, {
190
199
  onKeydown: (e) => handleKeydown(i, e),
191
- onPaste: (e) => handlePaste(e, i)
200
+ onPaste: (e) => handlePaste(e, i),
201
+ onMousedown: (e) => handleCursorToEnd(e, i)
192
202
  }), null), (_props$separator = props.separator) === null || _props$separator === void 0 ? void 0 : _props$separator.call(props, i, c)]);
193
203
  })]);
194
204
  };
@@ -66,6 +66,28 @@
66
66
  "description": "Whether to show the left axis",
67
67
  "type": "boolean"
68
68
  },
69
+ "sd-anchor/affix": {
70
+ "description": "Whether to wrap anchor within Affix",
71
+ "type": "boolean"
72
+ },
73
+ "sd-anchor/affix-style": {
74
+ "description": "The style to be applied to Affix"
75
+ },
76
+ "sd-anchor/offset-top": {
77
+ "description": "Offset from the top of the viewport",
78
+ "type": "number"
79
+ },
80
+ "sd-anchor/offset-bottom": {
81
+ "description": "Offset from the bottom of the viewport",
82
+ "type": "number"
83
+ },
84
+ "sd-anchor/direction": {
85
+ "description": "Direction"
86
+ },
87
+ "sd-anchor/target-offset": {
88
+ "description": "The offset of the baseline relative to the top of the container. The value is half of the height of the scrolling container if not specified",
89
+ "type": "number"
90
+ },
69
91
  "sd-anchor/scroll-container": {
70
92
  "description": "Scroll container"
71
93
  },
@@ -295,6 +317,10 @@
295
317
  "description": "Whether the button is in the loading state",
296
318
  "type": "boolean"
297
319
  },
320
+ "sd-button/loading-fixed-width": {
321
+ "description": "The width of the button remains unchanged on loading.",
322
+ "type": "boolean"
323
+ },
298
324
  "sd-button/disabled": {
299
325
  "description": "Whether the button is disabled",
300
326
  "type": "boolean"
@@ -599,6 +625,10 @@
599
625
  "description": "Whether to enable clear buttons by default",
600
626
  "type": "boolean"
601
627
  },
628
+ "sd-config-provider/auto-insert-space-in-button": {
629
+ "description": "When there are two Chinese characters in the button, a space is automatically added between two Chinese characters.",
630
+ "type": "boolean"
631
+ },
602
632
  "sd-config-provider/allow-search": {
603
633
  "description": "Whether to enable search by default",
604
634
  "type": "boolean"
@@ -761,6 +791,9 @@
761
791
  "sd-range-picker/time-picker-props": {
762
792
  "description": "Time display parameters, refer to [TimePickerProps](/vue/component/time-picker)"
763
793
  },
794
+ "sd-range-picker/input-props": {
795
+ "description": "Native input attributes"
796
+ },
764
797
  "sd-range-picker/placeholder": {
765
798
  "description": "Prompt copy"
766
799
  },
@@ -778,6 +811,26 @@
778
811
  "description": "Whether the time will be exchanged, by default time will affect and participate in the ordering of start and end values, if you want to fix the time order, you can turn it off.",
779
812
  "type": "boolean"
780
813
  },
814
+ "sd-range-picker/fixed-time": {
815
+ "description": "Is it a fixed time?",
816
+ "type": "boolean"
817
+ },
818
+ "sd-range-picker/clear-range-on-reselect": {
819
+ "description": "When reselecting the range, the previous range will be cleared for next selection",
820
+ "type": "boolean"
821
+ },
822
+ "sd-range-picker/hide-not-in-view-dates": {
823
+ "description": "Hide gray dates that are not in the current time range in the panel",
824
+ "type": "boolean"
825
+ },
826
+ "sd-range-picker/utc-offset": {
827
+ "description": "Set the timezone offset. Set to 0 for UTC time.",
828
+ "type": "number"
829
+ },
830
+ "sd-range-picker/timezone": {
831
+ "description": "Set timezone. If `utcOffset` is set, `utcOffset` takes precedence.",
832
+ "type": "string"
833
+ },
781
834
  "sd-range-picker/disabled-input": {
782
835
  "description": "Whether input is disabled with the keyboard.",
783
836
  "type": "boolean"
@@ -1790,186 +1843,53 @@
1790
1843
  "sd-input-search/button-props": {
1791
1844
  "description": "Button props"
1792
1845
  },
1793
- "sd-header/title": {
1794
- "description": "Header title",
1795
- "type": "string"
1796
- },
1797
- "sd-header/image": {
1798
- "description": "Header image url",
1799
- "type": "string"
1800
- },
1801
- "sd-header/model-value": {
1802
- "description": "Whether header is visible",
1803
- "type": "boolean"
1804
- },
1805
- "sd-header/default-visible": {
1806
- "description": "Whether header is visible by default",
1807
- "type": "boolean"
1808
- },
1809
- "sd-header/height": {
1810
- "description": "Header content height"
1811
- },
1812
- "sd-header/density": {
1813
- "description": "Header density"
1814
- },
1815
- "sd-header/extended": {
1816
- "description": "Whether extension area is enabled",
1817
- "type": "boolean"
1818
- },
1819
- "sd-header/extension-height": {
1820
- "description": "Extension area height"
1821
- },
1822
- "sd-header/collapse": {
1823
- "description": "Whether to collapse extension area",
1824
- "type": "boolean"
1825
- },
1826
- "sd-header/flat": {
1827
- "description": "Whether to remove shadow",
1828
- "type": "boolean"
1829
- },
1830
- "sd-header/floating": {
1831
- "description": "Whether to use floating style",
1832
- "type": "boolean"
1833
- },
1834
- "sd-header/fixed": {
1835
- "description": "Whether header is fixed to viewport edge",
1836
- "type": "boolean"
1837
- },
1838
- "sd-header/sticky": {
1839
- "description": "Whether header uses sticky positioning",
1840
- "type": "boolean"
1841
- },
1842
- "sd-header/absolute": {
1843
- "description": "Whether header uses absolute positioning",
1844
- "type": "boolean"
1845
- },
1846
- "sd-header/location": {
1847
- "description": "Header location"
1848
- },
1849
- "sd-header/scroll-behavior": {
1850
- "description": "Scroll behavior tokens",
1851
- "type": "string"
1852
- },
1853
- "sd-header/scroll-target": {
1854
- "description": "Scroll container selector, defaults to window",
1855
- "type": "string"
1856
- },
1857
- "sd-header/scroll-threshold": {
1858
- "description": "Scroll threshold"
1859
- },
1860
1846
  "sd-layout/has-sider": {
1861
- "description": "Indicates that there is a Sider in the sub-element, which generally does not need to be specified. Used to avoid style flicker when rendering on the server side.",
1847
+ "description": "Whether contains Sider, overrides auto detection when set to a boolean",
1862
1848
  "type": "boolean"
1863
1849
  },
1864
- "sd-sider/theme": {
1865
- "description": "Theme",
1866
- "type": "string"
1850
+ "sd-sider/collapse": {
1851
+ "description": "Triggered when the collapsed state changes"
1867
1852
  },
1868
- "sd-sider/model-value": {
1869
- "description": "Whether navigation drawer is visible",
1870
- "type": "boolean"
1853
+ "sd-sider/breakpoint": {
1854
+ "description": "Triggered when the responsive breakpoint match state changes"
1871
1855
  },
1872
- "sd-sider/default-visible": {
1873
- "description": "Whether navigation drawer is visible by default",
1856
+ "sd-sider/collapsible": {
1857
+ "description": "Whether can be collapsed",
1874
1858
  "type": "boolean"
1875
1859
  },
1876
1860
  "sd-sider/collapsed": {
1877
- "description": "Current collapsed state",
1861
+ "description": "Current collapsed state (controlled)",
1878
1862
  "type": "boolean"
1879
1863
  },
1880
1864
  "sd-sider/default-collapsed": {
1881
- "description": "The default collapsed state",
1882
- "type": "boolean"
1883
- },
1884
- "sd-sider/collapsible": {
1885
- "description": "Whether is collapsible",
1886
- "type": "boolean"
1887
- },
1888
- "sd-sider/rail": {
1889
- "description": "Whether to enable rail mode",
1865
+ "description": "Default collapsed state (uncontrolled)",
1890
1866
  "type": "boolean"
1891
1867
  },
1892
- "sd-sider/default-rail": {
1893
- "description": "Whether to enable rail mode by default",
1894
- "type": "boolean"
1895
- },
1896
- "sd-sider/rail-width": {
1897
- "description": "Width in rail mode",
1898
- "type": "number|string"
1899
- },
1900
- "sd-sider/expand-on-hover": {
1901
- "description": "Whether to expand rail on hover",
1868
+ "sd-sider/reverse-arrow": {
1869
+ "description": "Whether to reverse the arrow direction when collapsed",
1902
1870
  "type": "boolean"
1903
1871
  },
1904
- "sd-sider/disable-resize-watcher": {
1905
- "description": "Whether to disable resize watcher",
1906
- "type": "boolean"
1872
+ "sd-sider/zero-width-trigger-style": {
1873
+ "description": "Custom style of zero-width trigger when collapsedWidth is 0",
1874
+ "type": "object"
1907
1875
  },
1908
- "sd-sider/disable-route-watcher": {
1909
- "description": "Whether to disable route watcher",
1876
+ "sd-sider/hide-trigger": {
1877
+ "description": "Whether to hide the built-in collapse trigger, control collapse via collapsed",
1910
1878
  "type": "boolean"
1911
1879
  },
1912
1880
  "sd-sider/width": {
1913
- "description": "Width",
1914
- "type": "number|string"
1915
- },
1916
- "sd-sider/height": {
1917
- "description": "Height of top or bottom drawer",
1881
+ "description": "Width when expanded",
1918
1882
  "type": "number|string"
1919
1883
  },
1920
1884
  "sd-sider/collapsed-width": {
1921
- "description": "Collapsed width",
1922
- "type": "number"
1923
- },
1924
- "sd-sider/temporary": {
1925
- "description": "Whether to use temporary drawer mode",
1926
- "type": "boolean"
1927
- },
1928
- "sd-sider/permanent": {
1929
- "description": "Whether to always keep the drawer active",
1930
- "type": "boolean"
1931
- },
1932
- "sd-sider/persistent": {
1933
- "description": "Whether temporary drawer should stay open after scrim click",
1934
- "type": "boolean"
1935
- },
1936
- "sd-sider/mask": {
1937
- "description": "Whether to show the temporary drawer mask",
1938
- "type": "boolean"
1939
- },
1940
- "sd-sider/mask-closable": {
1941
- "description": "Whether the drawer can be closed by clicking the mask",
1942
- "type": "boolean"
1943
- },
1944
- "sd-sider/esc-to-close": {
1945
- "description": "Whether temporary drawer can be closed with ESC",
1946
- "type": "boolean"
1947
- },
1948
- "sd-sider/location": {
1949
- "description": "Navigation drawer location"
1950
- },
1951
- "sd-sider/floating": {
1952
- "description": "Whether to enable floating mode",
1953
- "type": "boolean"
1954
- },
1955
- "sd-sider/sticky": {
1956
- "description": "Whether to enable sticky mode",
1957
- "type": "boolean"
1958
- },
1959
- "sd-sider/reverse-arrow": {
1960
- "description": "Flip and fold the direction of the hint arrow, which can be used when Sider is on the right",
1961
- "type": "boolean"
1962
- },
1963
- "sd-sider/breakpoint": {
1964
- "description": "Trigger breakpoints for responsive layout, see [Responsive Grid](/vue/component/grid) for details",
1965
- "type": "string"
1885
+ "description": "Width when collapsed",
1886
+ "type": "number|string"
1966
1887
  },
1967
- "sd-sider/resize-directions": {
1968
- "description": "Can replace the native `aside` tag with ResizeBox. This is the `directions` parameter of ResizeBox. For details, please see [ResizeBox](/vue/component/resize-box)"
1888
+ "sd-sider/theme": {
1889
+ "description": "Theme color, follows ConfigProvider's themeMode when not set"
1969
1890
  },
1970
- "sd-sider/hide-trigger": {
1971
- "description": "Whether to hide the bottom fold trigger",
1972
- "type": "boolean"
1891
+ "sd-sider/scrollbar": {
1892
+ "description": "Scroll config, use the component Scrollbar by default; set to false for native overflow:auto, pass an object to configure Scrollbar"
1973
1893
  },
1974
1894
  "sd-link/click": {
1975
1895
  "description": "Emitted when the link is clicked"