vue-devui 1.5.8 → 1.5.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.
Files changed (82) hide show
  1. package/auto-complete/index.es.js +7 -1
  2. package/auto-complete/index.umd.js +7 -7
  3. package/auto-complete/style.css +1 -1
  4. package/checkbox/index.es.js +7 -1
  5. package/checkbox/index.umd.js +13 -13
  6. package/checkbox/style.css +1 -1
  7. package/code-review/index.es.js +254 -35
  8. package/code-review/index.umd.js +23 -21
  9. package/code-review/style.css +1 -1
  10. package/date-picker-pro/index.es.js +7 -1
  11. package/date-picker-pro/index.umd.js +8 -8
  12. package/date-picker-pro/style.css +1 -1
  13. package/dragdrop/index.es.js +158 -0
  14. package/dragdrop/index.umd.js +1 -0
  15. package/dragdrop/package.json +8 -0
  16. package/editor-md/style.css +1 -1
  17. package/form/index.es.js +7 -1
  18. package/form/index.umd.js +7 -7
  19. package/form/style.css +1 -1
  20. package/global.d.ts +1 -0
  21. package/input/index.es.js +7 -1
  22. package/input/index.umd.js +6 -6
  23. package/input/style.css +1 -1
  24. package/input-number/index.es.js +7 -1
  25. package/input-number/index.umd.js +10 -10
  26. package/input-number/style.css +1 -1
  27. package/mention/index.es.js +7 -1
  28. package/mention/index.umd.js +9 -9
  29. package/mention/style.css +1 -1
  30. package/modal/index.es.js +2 -1
  31. package/modal/index.umd.js +1 -1
  32. package/package.json +1 -1
  33. package/pagination/index.es.js +7 -1
  34. package/pagination/index.umd.js +7 -7
  35. package/pagination/style.css +1 -1
  36. package/radio/index.es.js +7 -1
  37. package/radio/index.umd.js +13 -13
  38. package/radio/style.css +1 -1
  39. package/search/index.es.js +7 -1
  40. package/search/index.umd.js +8 -8
  41. package/search/style.css +1 -1
  42. package/select/index.es.js +7 -1
  43. package/select/index.umd.js +5 -5
  44. package/select/style.css +1 -1
  45. package/splitter/index.es.js +14 -3
  46. package/splitter/index.umd.js +12 -12
  47. package/style.css +1 -1
  48. package/switch/index.es.js +7 -1
  49. package/switch/index.umd.js +14 -14
  50. package/switch/style.css +1 -1
  51. package/table/index.es.js +7 -1
  52. package/table/index.umd.js +5 -5
  53. package/table/style.css +1 -1
  54. package/textarea/index.es.js +7 -1
  55. package/textarea/index.umd.js +12 -12
  56. package/textarea/style.css +1 -1
  57. package/time-picker/index.es.js +7 -1
  58. package/time-picker/index.umd.js +7 -7
  59. package/time-picker/style.css +1 -1
  60. package/time-select/index.es.js +7 -1
  61. package/time-select/index.umd.js +5 -5
  62. package/time-select/style.css +1 -1
  63. package/tree/index.es.js +7 -1
  64. package/tree/index.umd.js +7 -7
  65. package/tree/style.css +1 -1
  66. package/types/code-review/src/code-review-types.d.ts +4 -0
  67. package/types/code-review/src/code-review.d.ts +7 -1
  68. package/types/code-review/src/composables/use-code-review-expand.d.ts +3 -2
  69. package/types/code-review/src/composables/use-code-review-fold.d.ts +6 -0
  70. package/types/code-review/src/composables/use-code-review.d.ts +6 -5
  71. package/types/code-review/src/utils.d.ts +9 -1
  72. package/types/dragdrop/src/const.d.ts +0 -1
  73. package/types/dragdrop/src/draggable-directive.d.ts +1 -18
  74. package/types/dragdrop/src/droppable-directive.d.ts +1 -14
  75. package/types/dragdrop/src/sortable-directive.d.ts +1 -15
  76. package/types/dragdrop/src/utils.d.ts +2 -80
  77. package/types/form/src/form-types.d.ts +4 -0
  78. package/types/form/src/form.d.ts +9 -0
  79. package/types/modal/src/modal-types.d.ts +1 -1
  80. package/types/modal/src/modal.d.ts +2 -1
  81. package/vue-devui.es.js +410 -220
  82. package/vue-devui.umd.js +66 -64
package/vue-devui.es.js CHANGED
@@ -39,6 +39,7 @@ import Clipboard from "clipboard";
39
39
  import { offset, autoPlacement, arrow, shift, computePosition, flip } from "@floating-ui/dom";
40
40
  import { onClickOutside, toRefs as toRefs$1, useResizeObserver } from "@vueuse/core";
41
41
  import * as Diff2Html from "diff2html";
42
+ import { Diff2HtmlUI } from "diff2html/lib/ui/js/diff2html-ui";
42
43
  import * as echarts from "echarts";
43
44
  import * as hljs from "highlight.js";
44
45
  import MarkdownIt from "markdown-it";
@@ -2134,6 +2135,10 @@ const formProps = {
2134
2135
  },
2135
2136
  size: {
2136
2137
  type: String
2138
+ },
2139
+ hideRequiredMark: {
2140
+ type: Boolean,
2141
+ default: false
2137
2142
  }
2138
2143
  };
2139
2144
  const FORM_TOKEN = Symbol("dForm");
@@ -6927,7 +6932,7 @@ var lodash = { exports: {} };
6927
6932
  function iteratee(func) {
6928
6933
  return baseIteratee(typeof func == "function" ? func : baseClone2(func, CLONE_DEEP_FLAG2));
6929
6934
  }
6930
- function matches(source) {
6935
+ function matches2(source) {
6931
6936
  return baseMatches(baseClone2(source, CLONE_DEEP_FLAG2));
6932
6937
  }
6933
6938
  function matchesProperty(path, srcValue) {
@@ -7139,7 +7144,7 @@ var lodash = { exports: {} };
7139
7144
  lodash2.map = map;
7140
7145
  lodash2.mapKeys = mapKeys;
7141
7146
  lodash2.mapValues = mapValues;
7142
- lodash2.matches = matches;
7147
+ lodash2.matches = matches2;
7143
7148
  lodash2.matchesProperty = matchesProperty;
7144
7149
  lodash2.memoize = memoize;
7145
7150
  lodash2.merge = merge;
@@ -8419,6 +8424,7 @@ function PendingIcon() {
8419
8424
  }, null)])]);
8420
8425
  }
8421
8426
  function useFormLabel() {
8427
+ const formContext = inject(FORM_TOKEN);
8422
8428
  const formItemContext = inject(FORM_ITEM_TOKEN);
8423
8429
  const labelData = inject(LABEL_DATA);
8424
8430
  const ns2 = useNamespace("form");
@@ -8430,7 +8436,8 @@ function useFormLabel() {
8430
8436
  }));
8431
8437
  const labelInnerClasses = computed(() => ({
8432
8438
  [`${ns2.e("label-span")}`]: true,
8433
- [`${ns2.em("label", "required")}`]: formItemContext.isRequired
8439
+ [`${ns2.em("label", "required")}`]: formItemContext.isRequired,
8440
+ [`${ns2.em("label", "required-hide")}`]: formItemContext.isRequired && formContext.hideRequiredMark
8434
8441
  }));
8435
8442
  return { labelClasses, labelInnerClasses };
8436
8443
  }
@@ -14255,6 +14262,9 @@ const codeReviewProps = {
14255
14262
  expandAllThreshold: {
14256
14263
  type: Number,
14257
14264
  default: 50
14265
+ },
14266
+ codeLoader: {
14267
+ type: Function
14258
14268
  }
14259
14269
  };
14260
14270
  const CodeReviewInjectionKey = Symbol("d-code-review");
@@ -14330,6 +14340,154 @@ function notEmptyNode(node) {
14330
14340
  const classes = node.classList;
14331
14341
  return !classes.contains("d2h-info") && !classes.contains("d2h-emptyplaceholder") && !classes.contains("comment-cell");
14332
14342
  }
14343
+ function insertIncrementLineToPage(referenceDom, trNodes, direction) {
14344
+ const trNodesToBeInserted = trNodes.filter((element) => element.children[0].children.length === 2);
14345
+ if (direction === "up") {
14346
+ const nextSibling = referenceDom.nextElementSibling;
14347
+ trNodesToBeInserted.forEach((item) => {
14348
+ var _a;
14349
+ (_a = referenceDom.parentNode) == null ? void 0 : _a.insertBefore(item, nextSibling);
14350
+ });
14351
+ } else {
14352
+ trNodesToBeInserted.forEach((item) => {
14353
+ var _a;
14354
+ (_a = referenceDom.parentNode) == null ? void 0 : _a.insertBefore(item, referenceDom);
14355
+ });
14356
+ }
14357
+ }
14358
+ function ifRemoveExpandLine(expandDom, newExpandDom, direction) {
14359
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
14360
+ const matches2 = newExpandDom.children[1].innerText.trim().match(ExpandLineReg);
14361
+ if (!matches2) {
14362
+ return true;
14363
+ }
14364
+ const leftLineNumber = parseInt(matches2[1]);
14365
+ const addedLine = parseInt(matches2[2]);
14366
+ const rightLineNumber = parseInt(matches2[3]);
14367
+ if (direction === "up") {
14368
+ const prevSibling = expandDom.previousElementSibling;
14369
+ if (!prevSibling) {
14370
+ if (leftLineNumber === 1 && rightLineNumber === 1) {
14371
+ expandDom == null ? void 0 : expandDom.remove();
14372
+ return true;
14373
+ }
14374
+ } else {
14375
+ const prevLeftLineNumber = parseInt((_c = (_b = (_a = prevSibling.children) == null ? void 0 : _a[0].children) == null ? void 0 : _b[0]) == null ? void 0 : _c.innerText);
14376
+ const prevRightLineNumber = parseInt((_f = (_e = (_d = prevSibling.children) == null ? void 0 : _d[0].children) == null ? void 0 : _e[1]) == null ? void 0 : _f.innerText);
14377
+ if (leftLineNumber === prevLeftLineNumber + 1 && rightLineNumber === prevRightLineNumber + 1) {
14378
+ expandDom.remove();
14379
+ return true;
14380
+ }
14381
+ }
14382
+ } else {
14383
+ const nextSibling = expandDom.nextElementSibling;
14384
+ const nextLeftLineNumber = parseInt((_i = (_h = (_g = nextSibling == null ? void 0 : nextSibling.children) == null ? void 0 : _g[0].children) == null ? void 0 : _h[0]) == null ? void 0 : _i.innerText);
14385
+ const nextRightLineNumber = parseInt((_l = (_k = (_j = nextSibling == null ? void 0 : nextSibling.children) == null ? void 0 : _j[0].children) == null ? void 0 : _k[1]) == null ? void 0 : _l.innerText);
14386
+ if (leftLineNumber + addedLine === nextLeftLineNumber && rightLineNumber + addedLine === nextRightLineNumber) {
14387
+ expandDom.remove();
14388
+ return true;
14389
+ }
14390
+ }
14391
+ return false;
14392
+ }
14393
+ function updateExpandLineCount(expandDom, newExpandDom) {
14394
+ if (!expandDom.nextElementSibling) {
14395
+ return;
14396
+ }
14397
+ const curMatches = expandDom.children[1].innerText.trim().match(ExpandLineReg);
14398
+ const newMatches = newExpandDom.children[1].innerText.trim().match(ExpandLineReg);
14399
+ const newChangedNumLeft = parseInt((curMatches == null ? void 0 : curMatches[2]) || "") + parseInt((newMatches == null ? void 0 : newMatches[2]) || "");
14400
+ const newChangedNumRight = parseInt((curMatches == null ? void 0 : curMatches[4]) || "") + parseInt((newMatches == null ? void 0 : newMatches[4]) || "");
14401
+ expandDom.children[1].children[0].innerText = `@@ -${(newMatches == null ? void 0 : newMatches[1]) || 0},${newChangedNumLeft} +${(newMatches == null ? void 0 : newMatches[3]) || 0},${newChangedNumRight} @@`;
14402
+ }
14403
+ function parseDiffCode(container, code, outputFormat) {
14404
+ const diff2HtmlUi = new Diff2HtmlUI(container, code, {
14405
+ drawFileList: false,
14406
+ matching: "lines",
14407
+ outputFormat,
14408
+ highlight: true
14409
+ });
14410
+ diff2HtmlUi.draw();
14411
+ diff2HtmlUi.highlightCode();
14412
+ }
14413
+ function setLineNumberInDataset(trNode, prevL, prevR, nextL, nextR) {
14414
+ if (trNode) {
14415
+ trNode.classList.add("expand-line");
14416
+ trNode.dataset.prevL = String(prevL);
14417
+ trNode.dataset.prevR = String(prevR);
14418
+ trNode.dataset.nextL = String(nextL);
14419
+ trNode.dataset.nextR = String(nextR);
14420
+ }
14421
+ }
14422
+ function updateExpandUpDownButton(trNode) {
14423
+ trNode.children[0].children[0].remove();
14424
+ trNode.children[0].children[0].classList.remove("up-expand");
14425
+ trNode.children[0].children[0].classList.add("all-expand");
14426
+ trNode.children[0].children[0].innerHTML = AllExpandIcon();
14427
+ }
14428
+ function updateLineNumberInDataset(trNode, expandAllThreshold, position, updateExpandButton = false) {
14429
+ let nextL;
14430
+ let prevL;
14431
+ let nextR;
14432
+ let prevR;
14433
+ if (position === "top") {
14434
+ const nextLineNode = trNode.nextElementSibling;
14435
+ nextL = parseInt(nextLineNode.children[0].children[0].innerText) - 1;
14436
+ prevL = Math.max(nextL - expandAllThreshold + 1, 1);
14437
+ nextR = parseInt(nextLineNode.children[0].children[1].innerText) - 1;
14438
+ prevR = Math.max(nextR - expandAllThreshold + 1, 1);
14439
+ } else if (position === "bottom") {
14440
+ const prevLineNode = trNode.previousElementSibling;
14441
+ prevL = parseInt(prevLineNode.children[0].children[0].innerText) + 1;
14442
+ nextL = prevL + expandAllThreshold - 1;
14443
+ prevR = parseInt(prevLineNode.children[0].children[1].innerText) + 1;
14444
+ nextR = prevR + expandAllThreshold - 1;
14445
+ } else {
14446
+ const prevLineNode = trNode.previousElementSibling;
14447
+ const nextLineNode = trNode.nextElementSibling;
14448
+ const prevLineNumber = parseInt(prevLineNode.children[0].children[0].innerText);
14449
+ const nextLineNumber = parseInt(nextLineNode.children[0].children[0].innerText);
14450
+ prevL = prevLineNumber + 1;
14451
+ prevR = parseInt(prevLineNode.children[0].children[1].innerText) + 1;
14452
+ nextL = nextLineNumber - 1;
14453
+ nextR = parseInt(nextLineNode.children[0].children[1].innerText) - 1;
14454
+ const isExpandAll = nextLineNumber - prevLineNumber <= expandAllThreshold;
14455
+ if (isExpandAll && updateExpandButton) {
14456
+ updateExpandUpDownButton(trNode);
14457
+ }
14458
+ }
14459
+ setLineNumberInDataset(trNode, prevL, prevR, nextL, nextR);
14460
+ }
14461
+ function getLineNumberFormDataset(expandDom, expandAllThreshold) {
14462
+ var _a, _b, _c;
14463
+ const attrsMap = (_b = (_a = expandDom.parentElement) == null ? void 0 : _a.parentElement) == null ? void 0 : _b.dataset;
14464
+ const prevL = Number(attrsMap == null ? void 0 : attrsMap.prevL);
14465
+ const nextL = Number(attrsMap == null ? void 0 : attrsMap.nextL);
14466
+ const prevR = Number(attrsMap == null ? void 0 : attrsMap.prevR);
14467
+ const nextR = Number(attrsMap == null ? void 0 : attrsMap.nextR);
14468
+ let leftLineStart, leftLineEnd, rightLineStart, rightLineEnd;
14469
+ if (prevL && nextL && prevR && nextR) {
14470
+ const buttonClasses = Array.from(expandDom.classList);
14471
+ const direction = (_c = buttonClasses.find((item) => item.endsWith("expand"))) == null ? void 0 : _c.split("-")[0];
14472
+ if (direction === "up") {
14473
+ leftLineEnd = nextL;
14474
+ leftLineStart = Math.max(leftLineEnd - expandAllThreshold + 1, prevL);
14475
+ rightLineEnd = nextR;
14476
+ rightLineStart = Math.max(rightLineEnd - expandAllThreshold + 1, prevR);
14477
+ } else if (direction === "down") {
14478
+ leftLineStart = prevL;
14479
+ leftLineEnd = Math.min(leftLineStart + expandAllThreshold - 1, nextL);
14480
+ rightLineStart = prevR;
14481
+ rightLineEnd = Math.min(rightLineStart + expandAllThreshold - 1, nextR);
14482
+ } else {
14483
+ leftLineStart = prevL;
14484
+ leftLineEnd = nextL;
14485
+ rightLineStart = prevR;
14486
+ rightLineEnd = nextR;
14487
+ }
14488
+ }
14489
+ return [leftLineStart, leftLineEnd, rightLineStart, rightLineEnd];
14490
+ }
14333
14491
  function insertNode(parent, child) {
14334
14492
  if (parent.firstChild) {
14335
14493
  parent.insertBefore(child, parent.firstChild);
@@ -14381,7 +14539,8 @@ function addCommentToPage(lineHost, commentDom, lineSide) {
14381
14539
  (_b = lineHost.parentElement) == null ? void 0 : _b.appendChild(newLine);
14382
14540
  }
14383
14541
  }
14384
- function useCodeReviewExpand(reviewContentRef, expandAllThreshold, outputFormat) {
14542
+ function useCodeReviewExpand(reviewContentRef, props) {
14543
+ const { outputFormat, expandAllThreshold, codeLoader } = toRefs(props);
14385
14544
  const processSideBySide = () => {
14386
14545
  const [leftTable, rightTable] = reviewContentRef.value.querySelectorAll("table");
14387
14546
  const trNodes = Array.from(leftTable.querySelectorAll("tr"));
@@ -14401,7 +14560,7 @@ function useCodeReviewExpand(reviewContentRef, expandAllThreshold, outputFormat)
14401
14560
  } else if (lineIndex > 0 && lineIndex < totalLines - 1 && nextLineIndex in trNodes && prevLineIndex in trNodes) {
14402
14561
  const preLineChildren = Array.from(trNodes[prevLineIndex].children);
14403
14562
  const nextLineChildren = Array.from(trNodes[nextLineIndex].children);
14404
- const isExpandAll = parseInt(nextLineChildren[0].innerText) - parseInt(preLineChildren[0].innerText) - 1 < expandAllThreshold;
14563
+ const isExpandAll = parseInt(nextLineChildren[0].innerText) - parseInt(preLineChildren[0].innerText) - 1 < expandAllThreshold.value;
14405
14564
  attachExpandUpDownButton(lineNumberBox, isExpandAll ? "all" : "updown");
14406
14565
  }
14407
14566
  }
@@ -14435,13 +14594,15 @@ function useCodeReviewExpand(reviewContentRef, expandAllThreshold, outputFormat)
14435
14594
  const nextLineIndex = lineIndex + 1;
14436
14595
  const prevLineIndex = lineIndex - 1;
14437
14596
  if (lineIndex === 0 && nextLineIndex in trNodes) {
14597
+ updateLineNumberInDataset(trNodes[lineIndex], expandAllThreshold.value, "top");
14438
14598
  attachExpandUpDownButton(lineNumberBox, "up");
14439
14599
  } else if (lineIndex > 0 && lineIndex < totalLines - 1 && nextLineIndex in trNodes && prevLineIndex in trNodes) {
14440
14600
  const prevTdNodes = Array.from(trNodes[prevLineIndex].children);
14441
14601
  const prevLineNumber = parseInt(prevTdNodes[0].children[0].innerText);
14442
14602
  const nextTdNodes = Array.from(trNodes[nextLineIndex].children);
14443
14603
  const nextLineNumber = parseInt(nextTdNodes[0].children[0].innerText);
14444
- const isExpandAll = nextLineNumber - prevLineNumber - 1 < expandAllThreshold;
14604
+ updateLineNumberInDataset(trNodes[lineIndex], expandAllThreshold.value, "middle");
14605
+ const isExpandAll = nextLineNumber - prevLineNumber <= expandAllThreshold.value;
14445
14606
  attachExpandUpDownButton(lineNumberBox, isExpandAll ? "all" : "updown");
14446
14607
  }
14447
14608
  }
@@ -14449,35 +14610,93 @@ function useCodeReviewExpand(reviewContentRef, expandAllThreshold, outputFormat)
14449
14610
  const loadMoreLine = trNodes[0].cloneNode(true);
14450
14611
  loadMoreLine.children[0].removeChild(loadMoreLine.children[0].children[0]);
14451
14612
  loadMoreLine.children[1].innerText = "";
14452
- loadMoreLine.children[1].style.height = "20px";
14453
- const lastTrNode = trNodes[totalLines - 1].children;
14454
- const leftLineStart = parseInt(lastTrNode[0].children[0].innerText) + 1;
14455
- const rightLineStart = parseInt(lastTrNode[0].children[1].innerText) + 1;
14456
- if (leftLineStart && rightLineStart) {
14457
- attachExpandUpDownButton(loadMoreLine.children[0], "down");
14458
- }
14459
14613
  (_a = trNodes[0].parentElement) == null ? void 0 : _a.appendChild(loadMoreLine);
14614
+ updateLineNumberInDataset(loadMoreLine, expandAllThreshold.value, "bottom");
14615
+ attachExpandUpDownButton(loadMoreLine.children[0], "down");
14616
+ };
14617
+ const insertIncrementCode = (code, direction, referenceDom) => {
14618
+ if (!referenceDom) {
14619
+ return;
14620
+ }
14621
+ if (!code) {
14622
+ return referenceDom == null ? void 0 : referenceDom.remove();
14623
+ }
14624
+ const prefix = "--- updated_at Jan 1, 2019, 0:0:0 AM\n+++ updated_at Jan 1, 2019, 0:0:0 AM\n";
14625
+ const container = document.createElement("div");
14626
+ parseDiffCode(container, prefix + code, outputFormat.value);
14627
+ const trNodes = Array.from(container.querySelectorAll("tr"));
14628
+ const expandLine = trNodes.find((element) => {
14629
+ var _a;
14630
+ return (_a = element.children[1]) == null ? void 0 : _a.innerText.trim().match(ExpandLineReg);
14631
+ });
14632
+ if (!expandLine) {
14633
+ return;
14634
+ }
14635
+ insertIncrementLineToPage(referenceDom, trNodes, direction);
14636
+ const removedExpandLine = ifRemoveExpandLine(referenceDom, expandLine, direction);
14637
+ if (removedExpandLine) {
14638
+ return;
14639
+ }
14640
+ updateExpandLineCount(referenceDom, expandLine);
14641
+ if (direction === "up") {
14642
+ if (!referenceDom.previousElementSibling) {
14643
+ updateLineNumberInDataset(referenceDom, expandAllThreshold.value, "top");
14644
+ } else {
14645
+ updateLineNumberInDataset(referenceDom, expandAllThreshold.value, "middle", true);
14646
+ }
14647
+ } else {
14648
+ if (referenceDom.nextElementSibling) {
14649
+ updateLineNumberInDataset(referenceDom, expandAllThreshold.value, "middle", true);
14650
+ } else {
14651
+ updateLineNumberInDataset(referenceDom, expandAllThreshold.value, "bottom");
14652
+ }
14653
+ }
14654
+ };
14655
+ const onExpandButtonClick = (e) => {
14656
+ var _a, _b;
14657
+ const composedPath = e.composedPath();
14658
+ const expandIconDom = composedPath.find((element) => {
14659
+ var _a2;
14660
+ return (_a2 = element.classList) == null ? void 0 : _a2.contains("expand-icon");
14661
+ });
14662
+ if (expandIconDom) {
14663
+ const expandDirection = (_a = Array.from(expandIconDom.classList).find((item) => item.endsWith("expand"))) == null ? void 0 : _a.split("-")[0];
14664
+ const direction = expandDirection === "up" || expandDirection === "all" ? "up" : "down";
14665
+ const [leftLineStart, leftLineEnd, rightLineStart, rightLineEnd] = getLineNumberFormDataset(expandIconDom, expandAllThreshold.value);
14666
+ (_b = codeLoader == null ? void 0 : codeLoader.value) == null ? void 0 : _b.call(codeLoader, [leftLineStart, leftLineEnd, rightLineStart, rightLineEnd], (code) => {
14667
+ var _a2;
14668
+ insertIncrementCode(code, direction, (_a2 = expandIconDom.parentElement) == null ? void 0 : _a2.parentElement);
14669
+ });
14670
+ }
14460
14671
  };
14461
14672
  const insertExpandButton = () => {
14462
- outputFormat === "side-by-side" ? processSideBySide() : processLineByLine();
14673
+ outputFormat.value === "side-by-side" ? processSideBySide() : processLineByLine();
14463
14674
  };
14464
- return { insertExpandButton };
14675
+ return { insertExpandButton, onExpandButtonClick };
14465
14676
  }
14466
14677
  function useCodeReview(props, ctx2) {
14467
- const { diff, fold, outputFormat, expandAllThreshold } = toRefs(props);
14678
+ const { diff, outputFormat } = toRefs(props);
14468
14679
  const renderHtml = ref("");
14469
- const isFold = ref(fold.value);
14470
14680
  const reviewContentRef = ref();
14471
- const diffFile = Diff2Html.parse(diff.value);
14472
- const { insertExpandButton } = useCodeReviewExpand(reviewContentRef, expandAllThreshold.value, outputFormat.value);
14681
+ const diffFile = ref([]);
14682
+ const { insertExpandButton, onExpandButtonClick } = useCodeReviewExpand(reviewContentRef, props);
14473
14683
  const initDiffContent = () => {
14474
- renderHtml.value = Diff2Html.html(diffFile, {
14475
- drawFileList: false,
14476
- matching: "lines",
14477
- outputFormat: outputFormat.value
14684
+ diffFile.value = Diff2Html.parse(diff.value);
14685
+ nextTick(() => {
14686
+ parseDiffCode(reviewContentRef.value, diff.value, outputFormat.value);
14687
+ insertExpandButton();
14688
+ ctx2.emit("contentRefresh", JSON.parse(JSON.stringify(diffFile.value)));
14478
14689
  });
14479
- nextTick(insertExpandButton);
14480
14690
  };
14691
+ const onContentClick = (e) => {
14692
+ onExpandButtonClick(e);
14693
+ };
14694
+ watch(diff, initDiffContent, { immediate: true });
14695
+ return { renderHtml, reviewContentRef, diffFile, onContentClick };
14696
+ }
14697
+ function useCodeReviewFold(props, ctx2) {
14698
+ const { fold } = toRefs(props);
14699
+ const isFold = ref(fold.value);
14481
14700
  const toggleFold = (status2) => {
14482
14701
  if (status2 !== void 0) {
14483
14702
  isFold.value = status2;
@@ -14489,18 +14708,9 @@ function useCodeReview(props, ctx2) {
14489
14708
  isFold.value = val;
14490
14709
  });
14491
14710
  watch(isFold, () => {
14492
- if (!isFold.value && renderHtml.value === "") {
14493
- initDiffContent();
14494
- }
14495
14711
  ctx2.emit("foldChange", isFold.value);
14496
14712
  });
14497
- onBeforeMount(() => {
14498
- if (!isFold.value) {
14499
- initDiffContent();
14500
- }
14501
- });
14502
- provide(CodeReviewInjectionKey, { reviewContentRef, diffInfo: diffFile[0], isFold, rootCtx: ctx2 });
14503
- return { renderHtml, isFold, reviewContentRef, toggleFold };
14713
+ return { isFold, toggleFold };
14504
14714
  }
14505
14715
  function useCodeReviewComment(reviewContentRef, ctx2) {
14506
14716
  const ns2 = useNamespace("code-review");
@@ -14580,6 +14790,10 @@ function useCodeReviewComment(reviewContentRef, ctx2) {
14580
14790
  nextLineHost = nextLineHost.nextElementSibling;
14581
14791
  }
14582
14792
  };
14793
+ window.addEventListener("scroll", resetLeftTop);
14794
+ onUnmounted(() => {
14795
+ window.removeEventListener("scroll", resetLeftTop);
14796
+ });
14583
14797
  return {
14584
14798
  commentLeft,
14585
14799
  commentTop,
@@ -14596,15 +14810,19 @@ var codeReview = "";
14596
14810
  var CodeReview = defineComponent({
14597
14811
  name: "DCodeReview",
14598
14812
  props: codeReviewProps,
14599
- emits: ["foldChange", "addComment", "afterViewInit"],
14813
+ emits: ["foldChange", "addComment", "afterViewInit", "contentRefresh"],
14600
14814
  setup(props, ctx2) {
14601
14815
  const ns2 = useNamespace("code-review");
14602
14816
  const {
14603
14817
  renderHtml,
14604
- isFold,
14605
14818
  reviewContentRef,
14606
- toggleFold
14819
+ diffFile,
14820
+ onContentClick
14607
14821
  } = useCodeReview(props, ctx2);
14822
+ const {
14823
+ isFold,
14824
+ toggleFold
14825
+ } = useCodeReviewFold(props, ctx2);
14608
14826
  const {
14609
14827
  commentLeft,
14610
14828
  commentTop,
@@ -14623,6 +14841,12 @@ var CodeReview = defineComponent({
14623
14841
  removeComment
14624
14842
  });
14625
14843
  });
14844
+ provide(CodeReviewInjectionKey, {
14845
+ reviewContentRef,
14846
+ diffInfo: diffFile.value[0],
14847
+ isFold,
14848
+ rootCtx: ctx2
14849
+ });
14626
14850
  return () => createVNode("div", {
14627
14851
  "class": ns2.b()
14628
14852
  }, [createVNode(CodeReviewHeader, {
@@ -14633,6 +14857,7 @@ var CodeReview = defineComponent({
14633
14857
  }],
14634
14858
  "innerHTML": renderHtml.value,
14635
14859
  "ref": reviewContentRef,
14860
+ "onClick": onContentClick,
14636
14861
  "onMouseenter": onMouseEnter,
14637
14862
  "onMousemove": onMouseMove,
14638
14863
  "onMouseleave": onMouseleave
@@ -21431,207 +21656,160 @@ var DatePickerProInstall = {
21431
21656
  app.component(DRangeDatePickerPro.name, DRangeDatePickerPro);
21432
21657
  }
21433
21658
  };
21434
- const SHADOW_ID = "devui-dragdrop-placeholder-shadow";
21435
- function getElementStyle(id, styleName) {
21436
- return document.getElementById(id).currentStyle ? document.getElementById(id).currentStyle[styleName] : window.getComputedStyle(document.getElementById(id), styleName);
21437
- }
21438
- function createShadow(originId) {
21439
- const shadow = document.createElement("div");
21440
- shadow.id = SHADOW_ID;
21441
- shadow.style.background = "rgb(206, 215, 255)";
21442
- shadow.style.width = getElementStyle(originId, "width");
21443
- shadow.style.height = "20px";
21444
- return shadow;
21445
- }
21446
- function changeDragState(el, originId, dragStart, drag, dragover, drop, shouldCreateShadow, dragFlag) {
21447
- el.dataset.originId = originId;
21448
- el.dataset.dragStart = dragStart;
21449
- el.dataset.dragover = dragover;
21450
- el.dataset.drop = drop;
21451
- el.dataset.shouldCreateShadow = shouldCreateShadow;
21452
- el.dataset.dragFlag = dragFlag;
21453
- }
21454
- function computeCompareElementHeight(compareElement) {
21455
- return compareElement.getBoundingClientRect().top + Math.floor(compareElement.offsetHeight / 2);
21456
- }
21457
- function createInsertSortableShadow(sortDropArea, mouseObject, originId) {
21458
- const sortDropAreaArr = [...sortDropArea.children];
21459
- if (sortDropAreaArr.length === 0) {
21460
- if (!document.getElementById(SHADOW_ID)) {
21461
- const shadowElement = createShadow(originId);
21462
- sortDropArea.appendChild(shadowElement);
21659
+ var draggableDirective = {};
21660
+ var droppableDirective = {};
21661
+ function matches(element, selector) {
21662
+ const proto = Element.prototype;
21663
+ const func = proto.matchesSelector || proto.mozMatchesSelector || proto.msMatchesSelector || proto.oMatchesSelector || proto.webkitMatchesSelector || function(s) {
21664
+ const ctx2 = this;
21665
+ const matchesElements = (ctx2.document || ctx2.ownerDocument).querySelectorAll(s);
21666
+ let i = matchesElements.length;
21667
+ while (--i >= 0 && matchesElements.item(i) !== ctx2) {
21463
21668
  }
21464
- } else {
21465
- for (let index2 = 0; index2 < sortDropAreaArr.length; index2++) {
21466
- const compareHeight = computeCompareElementHeight(sortDropAreaArr[index2]);
21467
- document.getElementById(SHADOW_ID) ? sortDropArea.removeChild(document.getElementById(SHADOW_ID)) : null;
21468
- if (Math.floor(mouseObject.clientY) <= Math.floor(compareHeight / 2) + sortDropAreaArr[index2].getBoundingClientRect().top) {
21469
- sortDropArea.insertBefore(createShadow(originId), sortDropAreaArr[index2]);
21470
- break;
21471
- } else {
21472
- index2 === sortDropAreaArr.length - 1 && sortDropArea.appendChild(createShadow(originId));
21473
- }
21474
- }
21475
- }
21476
- }
21477
- function deleteInsertedSortableShadow(dropSortArea) {
21478
- if (dropSortArea) {
21479
- if (document.getElementById(SHADOW_ID)) {
21480
- if (dropSortArea.contains(document.getElementById(SHADOW_ID))) {
21481
- dropSortArea.removeChild(document.getElementById(SHADOW_ID));
21482
- }
21483
- }
21484
- }
21485
- }
21486
- function judgeMouseIsInSortableArea(mouse, sortableArea) {
21487
- const { clientX, clientY } = mouse;
21488
- const eleLeft = sortableArea.getBoundingClientRect().left;
21489
- const eleRight = sortableArea.getBoundingClientRect().right;
21490
- const eleTop = sortableArea.getBoundingClientRect().top;
21491
- const eleBottom = sortableArea.getBoundingClientRect().bottom;
21492
- if (clientX > eleLeft && clientX < eleRight && clientY > eleTop && clientY < eleBottom) {
21493
- return true;
21494
- } else {
21495
- return false;
21496
- }
21497
- }
21498
- function sameOriginExchangeElementPosition(mouse, comparedArr, dragId, dropArea) {
21499
- if (comparedArr.length <= 1) {
21500
- return;
21501
- }
21502
- for (let index2 = 0; index2 < comparedArr.length; index2++) {
21503
- if (mouse.clientY < comparedArr[index2].getBoundingClientRect().top) {
21504
- dropArea.insertBefore(document.getElementById(dragId), comparedArr[index2]);
21505
- break;
21506
- }
21507
- if (index2 === comparedArr.length - 1 && mouse.clientY > comparedArr[index2].getBoundingClientRect().bottom) {
21508
- dropArea.appendChild(document.getElementById(dragId));
21509
- break;
21510
- }
21511
- }
21669
+ return i > -1;
21670
+ };
21671
+ return func.call(element, selector);
21512
21672
  }
21513
- function exchangeShadowPosition(mouse, dropAreaElements, dragId, dropArea) {
21514
- var _a, _b, _c;
21515
- for (let index2 = 0; index2 < dropAreaElements.length; index2++) {
21516
- if (((_a = dropAreaElements[index2]) == null ? void 0 : _a.id) !== SHADOW_ID) {
21517
- if (Math.floor(mouse.clientY) <= dropAreaElements[index2].getBoundingClientRect().top) {
21518
- if (((_b = dropAreaElements[index2 - 1]) == null ? void 0 : _b.id) !== SHADOW_ID) {
21519
- if (document.getElementById(SHADOW_ID)) {
21520
- dropArea.removeChild(document.getElementById(SHADOW_ID));
21673
+ var SortableDirective = {
21674
+ mounted(el, binding) {
21675
+ let sourceElement;
21676
+ let sourceIndex;
21677
+ let targetIndex;
21678
+ let mouseoverElement;
21679
+ let isDrop;
21680
+ const canDrag = () => {
21681
+ var _a, _b;
21682
+ if ((_a = binding == null ? void 0 : binding.value) == null ? void 0 : _a.handle) {
21683
+ const handleSelector = (_b = binding == null ? void 0 : binding.value) == null ? void 0 : _b.handle;
21684
+ let element = mouseoverElement;
21685
+ while (element !== el) {
21686
+ if (matches(element, handleSelector)) {
21687
+ return true;
21521
21688
  }
21522
- dropArea.insertBefore(createShadow(dragId), dropAreaElements[index2]);
21523
- break;
21689
+ element = element.parentNode;
21524
21690
  }
21691
+ return false;
21525
21692
  }
21526
- if (Math.floor(mouse.clientY) > dropAreaElements[dropAreaElements.length - 1].getBoundingClientRect().top) {
21527
- if (index2 === dropAreaElements.length - 1 && ((_c = dropAreaElements[index2]) == null ? void 0 : _c.id) !== SHADOW_ID) {
21528
- if (document.getElementById(SHADOW_ID)) {
21529
- dropArea.removeChild(document.getElementById(SHADOW_ID));
21530
- }
21531
- dropArea.appendChild(createShadow(dragId));
21693
+ return true;
21694
+ };
21695
+ const getCurrentTarget = (event) => {
21696
+ let index2 = -1;
21697
+ let element = event.target;
21698
+ while (element !== el) {
21699
+ if (element.parentNode === el) {
21700
+ index2 = Array.from(el.children).indexOf(element);
21532
21701
  }
21533
- break;
21702
+ element = element.parentNode;
21534
21703
  }
21535
- }
21536
- }
21537
- }
21538
- var DraggableDirective = {
21539
- mounted(el, binding) {
21540
- el.setAttribute("draggable", "true");
21541
- el.style.cursor = "grab";
21542
- el.addEventListener("drag", () => {
21543
- changeDragState(el, el.id, "true", "true", "false", "false", "false", "true");
21544
- if (binding.instance.$root.dropElement && document.getElementById(SHADOW_ID)) {
21545
- deleteInsertedSortableShadow(binding.instance.$root.dropElement);
21546
- binding.instance.$root.dropElement = null;
21547
- }
21548
- }, false);
21549
- el.addEventListener("dragstart", () => {
21550
- changeDragState(el, el.id, "true", "true", "false", "false", "false", "false");
21551
- binding.instance.$root.identity = el.id;
21552
- el.dataset.dragArea = el.parentNode.className;
21553
- }, false);
21554
- }
21555
- };
21556
- var DroppableDirective = {
21557
- mounted(el, binding) {
21558
- el.addEventListener("dragover", (event) => {
21559
- event.preventDefault();
21560
- const dragId = binding.instance.$root.identity;
21561
- changeDragState(document.getElementById(dragId), dragId, "true", "false", "true", "false", "false", "false");
21562
- document.getElementById(dragId).dataset.dropArea = [...el.childNodes][1].className;
21563
- }, false);
21564
- el.addEventListener("drop", (event) => {
21565
- event.preventDefault();
21566
- const dragId = binding.instance.$root.identity;
21567
- document.getElementById(dragId).dataset.parent = "not-sortable-drop-area";
21568
- if (document.getElementById(dragId).dataset.dropArea === document.getElementById(dragId).dataset.dragArea) {
21569
- return;
21704
+ return index2;
21705
+ };
21706
+ const getDragClass = () => {
21707
+ var _a;
21708
+ return ((_a = binding == null ? void 0 : binding.value) == null ? void 0 : _a.dragClass) || "devui-drag-item";
21709
+ };
21710
+ const emitEvent = (funcName, event) => {
21711
+ if (binding == null ? void 0 : binding.value[funcName]) {
21712
+ binding == null ? void 0 : binding.value[funcName](event);
21570
21713
  }
21571
- const childrenArr = [...Array.from(el.children)[1].children];
21572
- if (childrenArr.length > 0) {
21573
- for (let index2 = 0; index2 < childrenArr.length; index2++) {
21574
- const childrenYRange = childrenArr[index2].getBoundingClientRect().top + childrenArr[index2].offsetHeight / 2;
21575
- if (parseFloat(event.clientY) < parseFloat(childrenYRange)) {
21576
- el.children[1].insertBefore(document.getElementById(dragId), childrenArr[index2]);
21577
- break;
21578
- }
21579
- if (index2 === childrenArr.length - 1) {
21580
- el.children[1].appendChild(document.getElementById(dragId));
21581
- }
21714
+ };
21715
+ el.addEventListener("mouseover", (event) => {
21716
+ mouseoverElement = event.target;
21717
+ });
21718
+ Array.from(el.children).forEach((element) => {
21719
+ element.setAttribute("draggable", "true");
21720
+ element.addEventListener("dragstart", (event) => {
21721
+ if (canDrag()) {
21722
+ isDrop = false;
21723
+ sourceElement = element;
21724
+ sourceIndex = Array.from(el.children).indexOf(sourceElement);
21725
+ setTimeout(() => {
21726
+ sourceElement.classList.add(getDragClass());
21727
+ });
21728
+ } else {
21729
+ event.preventDefault();
21730
+ event.stopPropagation();
21582
21731
  }
21583
- } else {
21584
- el.childNodes[1].appendChild(document.getElementById(dragId));
21585
- }
21732
+ emitEvent("dragStart", event);
21733
+ });
21734
+ });
21735
+ el.addEventListener("dragenter", function(event) {
21736
+ emitEvent("dragEnter", event);
21586
21737
  });
21587
- }
21588
- };
21589
- var SortableDirective = {
21590
- mounted(el, binding) {
21591
- const self2 = el;
21592
21738
  el.addEventListener("dragover", function(event) {
21593
- var _a;
21594
- event.preventDefault();
21595
- const dragId = binding.instance.$root.identity;
21596
- if (((_a = document.getElementById(dragId)) == null ? void 0 : _a.dataset.parent) === "sortable-drop-area") {
21597
- return;
21598
- }
21599
- if (!document.getElementById(SHADOW_ID) && [...self2.childNodes[1].children].length === 0) {
21600
- createInsertSortableShadow([...self2.childNodes][1], event, dragId);
21601
- } else if ([...self2.childNodes[1].children].length >= 1) {
21602
- exchangeShadowPosition(event, [...self2.childNodes[1].children], dragId, self2.childNodes[1]);
21739
+ var _a, _b;
21740
+ const currentIndex = Array.from(el.children).indexOf(sourceElement);
21741
+ const toIndex = getCurrentTarget(event);
21742
+ if (currentIndex !== -1 && toIndex !== -1) {
21743
+ if (currentIndex > toIndex) {
21744
+ el.removeChild(sourceElement);
21745
+ el.insertBefore(sourceElement, el.children[toIndex]);
21746
+ targetIndex = toIndex;
21747
+ } else if (currentIndex < toIndex) {
21748
+ el.removeChild(sourceElement);
21749
+ if (el.children[toIndex]) {
21750
+ el.insertBefore(sourceElement, el.children[toIndex]);
21751
+ targetIndex = toIndex;
21752
+ } else {
21753
+ el.appendChild(sourceElement);
21754
+ targetIndex = el.children.length - 1;
21755
+ }
21756
+ }
21757
+ ((_a = binding == null ? void 0 : binding.value) == null ? void 0 : _a.dragover) && ((_b = binding == null ? void 0 : binding.value) == null ? void 0 : _b.dragover(event));
21603
21758
  }
21759
+ event.preventDefault();
21760
+ emitEvent("dragOver", event);
21761
+ });
21762
+ el.addEventListener("dragleave", function(event) {
21763
+ emitEvent("dragLeave", event);
21604
21764
  });
21605
21765
  el.addEventListener("drop", function(event) {
21606
- var _a;
21607
- const dropArea = [...el.childNodes][1];
21608
- const dragId = binding.instance.$root.identity;
21609
- if (((_a = document.getElementById(dragId)) == null ? void 0 : _a.dataset.parent) === "sortable-drop-area") {
21610
- sameOriginExchangeElementPosition(event, [...dropArea.children], dragId, dropArea);
21611
- return;
21612
- }
21613
- if (document.getElementById(SHADOW_ID)) {
21614
- dropArea.replaceChild(document.getElementById(dragId), document.getElementById(SHADOW_ID));
21615
- if (document.getElementById(dragId)) {
21616
- document.getElementById(dragId).dataset.parent = "sortable-drop-area";
21766
+ var _a, _b, _c;
21767
+ isDrop = true;
21768
+ if ((_a = binding == null ? void 0 : binding.value) == null ? void 0 : _a.list) {
21769
+ const list2 = (_b = binding == null ? void 0 : binding.value) == null ? void 0 : _b.list;
21770
+ const item = list2[sourceIndex];
21771
+ list2.splice(sourceIndex, 1);
21772
+ list2.splice(targetIndex, 0, item);
21773
+ if ((_c = binding == null ? void 0 : binding.value) == null ? void 0 : _c.drop) {
21774
+ emitEvent("drop", {
21775
+ event,
21776
+ list: list2,
21777
+ fromIndex: sourceIndex,
21778
+ targetIndex
21779
+ });
21617
21780
  }
21618
21781
  }
21619
21782
  });
21620
- el.addEventListener("dragleave", function(event) {
21621
- const dropArea = [...el.childNodes][1];
21622
- if (document.getElementById(SHADOW_ID) && !judgeMouseIsInSortableArea(event, el)) {
21623
- dropArea.removeChild(document.getElementById(SHADOW_ID));
21783
+ el.addEventListener("dragend", function(event) {
21784
+ if (!isDrop) {
21785
+ if (sourceIndex !== -1 && targetIndex !== -1) {
21786
+ if (targetIndex > sourceIndex) {
21787
+ el.removeChild(sourceElement);
21788
+ el.insertBefore(sourceElement, el.children[sourceIndex]);
21789
+ } else if (sourceIndex > targetIndex) {
21790
+ el.removeChild(sourceElement);
21791
+ if (el.children[sourceIndex]) {
21792
+ el.insertBefore(sourceElement, el.children[sourceIndex]);
21793
+ } else {
21794
+ el.appendChild(sourceElement);
21795
+ }
21796
+ }
21797
+ }
21624
21798
  }
21799
+ sourceIndex = -1;
21800
+ targetIndex = -1;
21801
+ setTimeout(() => {
21802
+ sourceElement.classList.remove(getDragClass());
21803
+ });
21804
+ emitEvent("dragEnd", event);
21625
21805
  });
21626
21806
  }
21627
21807
  };
21628
21808
  var DragdropInstall = {
21629
21809
  title: "Dragdrop \u62D6\u62FD",
21630
- category: "\u901A\u7528",
21631
- status: "10%",
21810
+ category: "\u6F14\u8FDB\u4E2D",
21811
+ status: "100%",
21632
21812
  install(app) {
21633
- app.directive("DDraggable", DraggableDirective);
21634
- app.directive("DDroppable", DroppableDirective);
21635
21813
  app.directive("DSortable", SortableDirective);
21636
21814
  }
21637
21815
  };
@@ -30127,6 +30305,7 @@ const modalProps = {
30127
30305
  function useModal(props, emit) {
30128
30306
  function close2() {
30129
30307
  emit("update:modelValue", false);
30308
+ emit("close");
30130
30309
  }
30131
30310
  function execClose() {
30132
30311
  props.beforeClose ? props.beforeClose(close2) : close2();
@@ -30280,7 +30459,7 @@ var Modal = defineComponent({
30280
30459
  name: "DModal",
30281
30460
  inheritAttrs: false,
30282
30461
  props: modalProps,
30283
- emits: ["update:modelValue"],
30462
+ emits: ["update:modelValue", "close"],
30284
30463
  setup(props, {
30285
30464
  slots,
30286
30465
  attrs,
@@ -35374,9 +35553,11 @@ var SplitterPane = defineComponent({
35374
35553
  slots,
35375
35554
  expose
35376
35555
  }) {
35556
+ var _a;
35377
35557
  const store = inject("splitterStore");
35378
35558
  const domRef = ref();
35379
35559
  const orderRef = ref();
35560
+ const currentVnode = (_a = getCurrentInstance()) == null ? void 0 : _a.vnode;
35380
35561
  const ns2 = useNamespace("splitter");
35381
35562
  watch([orderRef, domRef], ([order, ele]) => {
35382
35563
  if (!ele) {
@@ -35470,17 +35651,26 @@ var SplitterPane = defineComponent({
35470
35651
  addClass(ele, flexGrowClass);
35471
35652
  }
35472
35653
  };
35654
+ const updateCollapsed = (collapsed) => {
35655
+ var _a2;
35656
+ if (typeof collapsed === "boolean") {
35657
+ currentVnode.component.props.collapsed = collapsed;
35658
+ return;
35659
+ }
35660
+ currentVnode.component.props.collapsed = !((_a2 = currentVnode == null ? void 0 : currentVnode.component) == null ? void 0 : _a2.props.collapsed);
35661
+ };
35473
35662
  expose({
35474
35663
  order: orderRef,
35475
35664
  getPaneSize,
35476
- toggleNearPaneFlexGrow
35665
+ toggleNearPaneFlexGrow,
35666
+ updateCollapsed
35477
35667
  });
35478
35668
  return () => {
35479
- var _a;
35669
+ var _a2;
35480
35670
  return createVNode("div", {
35481
35671
  "class": ns2.e("pane"),
35482
35672
  "ref": domRef
35483
- }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
35673
+ }, [(_a2 = slots.default) == null ? void 0 : _a2.call(slots)]);
35484
35674
  };
35485
35675
  }
35486
35676
  });
@@ -43199,9 +43389,9 @@ const installs = [
43199
43389
  VirtualListInstall
43200
43390
  ];
43201
43391
  var vueDevui = {
43202
- version: "1.5.8",
43392
+ version: "1.5.9",
43203
43393
  install(app) {
43204
43394
  installs.forEach((p) => app.use(p));
43205
43395
  }
43206
43396
  };
43207
- export { Accordion, ActionTimeline, Alert, Anchor, Aside, AutoComplete, Avatar, BackTop, Badge, Breadcrumb, BreadcrumbItem, DButton as Button, ButtonGroup, Card, Carousel, CarouselItem, Cascader, Checkbox, CheckboxButton, DCheckboxGroup as CheckboxGroup, CodeEditor, CodeReview, Col, Collapse, CollapseItem, ColorPicker, Column, Comment, Content, Countdown, DChart, DRangeDatePickerPro, DatePicker, DatePickerPro, DraggableDirective, Drawer, DrawerService, Dropdown$1 as Dropdown, DropdownMenu, DroppableDirective, EditableSelect, EditorMd, FixedOverlay, FlexibleOverlay, Footer, Form, FormItem, FormOperation, Fullscreen, Gantt, GitGraph, Header, DIcon as Icon, IconGroup, ImagePreviewDirective, ImagePreviewService, DInput as Input, InputIcon, InputNumber, Layout, List, ListItem, LoadingDirective, loading as LoadingService, MdRender, Mention, Menu, MenuItem, Message, Modal, ModalBody, ModalFooter, ModalHeader, MultiAutoComplete, NavSprite, Notification, NotificationService, Option, OptionGroup, Pagination, Panel, PanelBody, PanelFooter, PanelHeader, Popover, Progress, QuadrantDiagram, Radio, RadioButton, RadioGroup, Rate, ReadTip, Result, RippleDirective, Row, DSearch as Search, Select, Skeleton, SkeletonItem, Slider, SortableDirective, Splitter, SplitterPane, Statistic, Status, Step, Steps, StepsGuide, StepsGuideDirective, StickSlider, Sticky, SubMenu, Switch, Tab, Table, Tabs, Tag, TagInput, Textarea, TimePicker, TimeSelect, Timeline, TimelineItem, Tooltip, Transfer, Tree, TreeSelect, Upload, VirtualList, vueDevui as default, fileDropDirective };
43397
+ export { Accordion, ActionTimeline, Alert, Anchor, Aside, AutoComplete, Avatar, BackTop, Badge, Breadcrumb, BreadcrumbItem, DButton as Button, ButtonGroup, Card, Carousel, CarouselItem, Cascader, Checkbox, CheckboxButton, DCheckboxGroup as CheckboxGroup, CodeEditor, CodeReview, Col, Collapse, CollapseItem, ColorPicker, Column, Comment, Content, Countdown, DChart, DRangeDatePickerPro, DatePicker, DatePickerPro, draggableDirective as DraggableDirective, Drawer, DrawerService, Dropdown$1 as Dropdown, DropdownMenu, droppableDirective as DroppableDirective, EditableSelect, EditorMd, FixedOverlay, FlexibleOverlay, Footer, Form, FormItem, FormOperation, Fullscreen, Gantt, GitGraph, Header, DIcon as Icon, IconGroup, ImagePreviewDirective, ImagePreviewService, DInput as Input, InputIcon, InputNumber, Layout, List, ListItem, LoadingDirective, loading as LoadingService, MdRender, Mention, Menu, MenuItem, Message, Modal, ModalBody, ModalFooter, ModalHeader, MultiAutoComplete, NavSprite, Notification, NotificationService, Option, OptionGroup, Pagination, Panel, PanelBody, PanelFooter, PanelHeader, Popover, Progress, QuadrantDiagram, Radio, RadioButton, RadioGroup, Rate, ReadTip, Result, RippleDirective, Row, DSearch as Search, Select, Skeleton, SkeletonItem, Slider, SortableDirective, Splitter, SplitterPane, Statistic, Status, Step, Steps, StepsGuide, StepsGuideDirective, StickSlider, Sticky, SubMenu, Switch, Tab, Table, Tabs, Tag, TagInput, Textarea, TimePicker, TimeSelect, Timeline, TimelineItem, Tooltip, Transfer, Tree, TreeSelect, Upload, VirtualList, vueDevui as default, fileDropDirective };