vue3-components-plus 3.0.23 → 3.0.30

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.
@@ -2,7 +2,7 @@ var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
4
  var _a2;
5
- import { defineComponent, openBlock, createElementBlock, createElementVNode, ref as ref$1, watch, normalizeClass, nextTick, useCssVars, computed, defineAsyncComponent, reactive, onMounted, onUnmounted, resolveComponent, createBlock, createSlots, withCtx, resolveDynamicComponent, mergeProps, toHandlers, Fragment, createTextVNode, toDisplayString, unref, createCommentVNode, createVNode, createApp, render, useAttrs, watchEffect, withDirectives, vShow, renderSlot, resolveDirective, renderList, normalizeStyle, getCurrentInstance, shallowRef, onBeforeUnmount, createStaticVNode, Transition, vModelText, withModifiers, normalizeProps, guardReactiveProps, onUpdated, h as h$2 } from "vue";
5
+ import { defineComponent, openBlock, createElementBlock, createElementVNode, ref as ref$1, watch, normalizeClass, nextTick, useCssVars, computed, defineAsyncComponent, reactive, onMounted, onUnmounted, resolveComponent, createBlock, normalizeStyle, createSlots, withCtx, resolveDynamicComponent, mergeProps, toHandlers, Fragment, createTextVNode, toDisplayString, unref, createCommentVNode, createVNode, createApp, render, useAttrs, watchEffect, withDirectives, vShow, renderSlot, resolveDirective, renderList, getCurrentInstance, shallowRef, onBeforeUnmount, createStaticVNode, Transition, vModelText, withModifiers, normalizeProps, guardReactiveProps, onUpdated, h as h$2 } from "vue";
6
6
  import { ElMessage, ElImage } from "element-plus";
7
7
  import VuePdfApp from "vue3-pdf-app";
8
8
  import axios from "axios";
@@ -14710,8 +14710,8 @@ var CRC32 = /* @__PURE__ */ (function() {
14710
14710
  return CRC322;
14711
14711
  })();
14712
14712
  var CFB = /* @__PURE__ */ (function _CFB() {
14713
- var exports$1 = {};
14714
- exports$1.version = "1.2.1";
14713
+ var exports = {};
14714
+ exports.version = "1.2.1";
14715
14715
  function namecmp(l, r) {
14716
14716
  var L = l.split("/"), R3 = r.split("/");
14717
14717
  for (var i6 = 0, c = 0, Z2 = Math.min(L.length, R3.length); i6 < Z2; ++i6) {
@@ -16276,12 +16276,12 @@ var CFB = /* @__PURE__ */ (function _CFB() {
16276
16276
  function cfb_gc(cfb) {
16277
16277
  rebuild_cfb(cfb, true);
16278
16278
  }
16279
- exports$1.find = find;
16280
- exports$1.read = read;
16281
- exports$1.parse = parse2;
16282
- exports$1.write = write;
16283
- exports$1.writeFile = write_file;
16284
- exports$1.utils = {
16279
+ exports.find = find;
16280
+ exports.read = read;
16281
+ exports.parse = parse2;
16282
+ exports.write = write;
16283
+ exports.writeFile = write_file;
16284
+ exports.utils = {
16285
16285
  cfb_new,
16286
16286
  cfb_add,
16287
16287
  cfb_del,
@@ -16296,7 +16296,7 @@ var CFB = /* @__PURE__ */ (function _CFB() {
16296
16296
  _inflateRaw: _inflate,
16297
16297
  consts
16298
16298
  };
16299
- return exports$1;
16299
+ return exports;
16300
16300
  })();
16301
16301
  function blobify(data) {
16302
16302
  if (typeof data === "string") return s2ab(data);
@@ -44964,13 +44964,13 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
44964
44964
  },
44965
44965
  setup(__props) {
44966
44966
  useCssVars((_ctx) => ({
44967
- "v77f2af18": __props.modalColor,
44968
- "v7a8999b8": _height.value,
44969
- "d0083dbc": dialogPosition.value.left,
44970
- "bc631e4c": dialogPosition.value.top,
44971
- "v565b3321": tbPadding.value,
44972
- "v324a8909": lrPadding.value,
44973
- "v437133ce": _centerHeight.value
44967
+ "fcb374fa": __props.modalColor,
44968
+ "v85a3a6ce": _height.value,
44969
+ "v2ab959d2": dialogPosition.value.left,
44970
+ "v5a266c45": dialogPosition.value.top,
44971
+ "v7ff5a356": tbPadding.value,
44972
+ "v5be4f93e": lrPadding.value,
44973
+ "v4fd69864": _centerHeight.value
44974
44974
  }));
44975
44975
  const asyncDom = computed(() => {
44976
44976
  var _a3;
@@ -45253,6 +45253,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
45253
45253
  modelValue: visible.value,
45254
45254
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => visible.value = $event),
45255
45255
  width: currentWidth.value,
45256
+ style: normalizeStyle({ height: _height.value, ...dialogPosition.value }),
45256
45257
  "show-close": false,
45257
45258
  onClose: dealClose,
45258
45259
  onClosed: dealClosed
@@ -45336,7 +45337,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
45336
45337
  ]),
45337
45338
  key: "0"
45338
45339
  } : void 0
45339
- ]), 1032, ["class", "modal-class", "modal", "modal-penetrable", "draggable", "close-on-click-modal", "modelValue", "width"]);
45340
+ ]), 1032, ["class", "modal-class", "modal", "modal-penetrable", "draggable", "close-on-click-modal", "modelValue", "width", "style"]);
45340
45341
  };
45341
45342
  }
45342
45343
  });
@@ -45769,7 +45770,7 @@ var hasRequiredJszip_min;
45769
45770
  function requireJszip_min() {
45770
45771
  if (hasRequiredJszip_min) return jszip_min.exports;
45771
45772
  hasRequiredJszip_min = 1;
45772
- (function(module, exports$1) {
45773
+ (function(module, exports) {
45773
45774
  !(function(e6) {
45774
45775
  module.exports = e6();
45775
45776
  })(function() {
@@ -54352,9 +54353,8 @@ function requireSideChannelList() {
54352
54353
  }
54353
54354
  },
54354
54355
  "delete": function(key) {
54355
- var root2 = $o2 && $o2.next;
54356
54356
  var deletedNode = listDelete($o2, key);
54357
- if (deletedNode && root2 && root2 === deletedNode) {
54357
+ if (deletedNode && $o2 && !$o2.next) {
54358
54358
  $o2 = void 0;
54359
54359
  }
54360
54360
  return !!deletedNode;
@@ -55345,7 +55345,8 @@ function requireSideChannel() {
55345
55345
  var channel = {
55346
55346
  assert: function(key) {
55347
55347
  if (!channel.has(key)) {
55348
- throw new $TypeError("Side channel does not contain " + inspect(key));
55348
+ var keyDesc = key && Object(key) === key ? "the given object key" : inspect(key);
55349
+ throw new $TypeError("Side channel does not contain " + keyDesc);
55349
55350
  }
55350
55351
  },
55351
55352
  "delete": function(key) {
@@ -55747,7 +55748,7 @@ function requireStringify() {
55747
55748
  }
55748
55749
  if (obj === null) {
55749
55750
  if (strictNullHandling) {
55750
- return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, "key", format) : prefix;
55751
+ return formatter(encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, "key", format) : prefix);
55751
55752
  }
55752
55753
  obj = "";
55753
55754
  }
@@ -55765,7 +55766,9 @@ function requireStringify() {
55765
55766
  var objKeys;
55766
55767
  if (generateArrayPrefix === "comma" && isArray(obj)) {
55767
55768
  if (encodeValuesOnly && encoder) {
55768
- obj = utils2.maybeMap(obj, encoder);
55769
+ obj = utils2.maybeMap(obj, function(v) {
55770
+ return v == null ? v : encoder(v);
55771
+ });
55769
55772
  }
55770
55773
  objKeys = [{ value: obj.length > 0 ? obj.join(",") || null : void 0 }];
55771
55774
  } else if (isArray(filter)) {
@@ -55903,6 +55906,9 @@ function requireStringify() {
55903
55906
  var sideChannel2 = getSideChannel();
55904
55907
  for (var i3 = 0; i3 < objKeys.length; ++i3) {
55905
55908
  var key = objKeys[i3];
55909
+ if (typeof key === "undefined" || key === null) {
55910
+ continue;
55911
+ }
55906
55912
  var value = obj[key];
55907
55913
  if (options.skipNulls && value === null) {
55908
55914
  continue;
@@ -55932,9 +55938,9 @@ function requireStringify() {
55932
55938
  var prefix = options.addQueryPrefix === true ? "?" : "";
55933
55939
  if (options.charsetSentinel) {
55934
55940
  if (options.charset === "iso-8859-1") {
55935
- prefix += "utf8=%26%2310003%3B&";
55941
+ prefix += "utf8=%26%2310003%3B" + options.delimiter;
55936
55942
  } else {
55937
- prefix += "utf8=%E2%9C%93&";
55943
+ prefix += "utf8=%E2%9C%93" + options.delimiter;
55938
55944
  }
55939
55945
  }
55940
55946
  return joined.length > 0 ? prefix + joined : "";
@@ -55996,9 +56002,9 @@ function requireParse() {
55996
56002
  var limit = options.parameterLimit === Infinity ? void 0 : options.parameterLimit;
55997
56003
  var parts = cleanStr.split(
55998
56004
  options.delimiter,
55999
- options.throwOnLimitExceeded ? limit + 1 : limit
56005
+ options.throwOnLimitExceeded && typeof limit !== "undefined" ? limit + 1 : limit
56000
56006
  );
56001
- if (options.throwOnLimitExceeded && parts.length > limit) {
56007
+ if (options.throwOnLimitExceeded && typeof limit !== "undefined" && parts.length > limit) {
56002
56008
  throw new RangeError("Parameter limit exceeded. Only " + limit + " parameter" + (limit === 1 ? "" : "s") + " allowed.");
56003
56009
  }
56004
56010
  var skipIndex = -1;
@@ -56117,8 +56123,8 @@ function requireParse() {
56117
56123
  }
56118
56124
  return leaf;
56119
56125
  };
56120
- var splitKeyIntoSegments = function splitKeyIntoSegments2(givenKey, options) {
56121
- var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, "[$1]") : givenKey;
56126
+ var splitKeyIntoSegments = function splitKeyIntoSegments2(originalKey, options) {
56127
+ var key = options.allowDots ? originalKey.replace(/\.([^.[]+)/g, "[$1]") : originalKey;
56122
56128
  if (options.depth <= 0) {
56123
56129
  if (!options.plainObjects && has.call(Object.prototype, key)) {
56124
56130
  if (!options.allowPrototypes) {
@@ -56127,37 +56133,56 @@ function requireParse() {
56127
56133
  }
56128
56134
  return [key];
56129
56135
  }
56130
- var brackets = /(\[[^[\]]*])/;
56131
- var child = /(\[[^[\]]*])/g;
56132
- var segment = brackets.exec(key);
56133
- var parent = segment ? key.slice(0, segment.index) : key;
56134
- var keys2 = [];
56136
+ var segments = [];
56137
+ var first = key.indexOf("[");
56138
+ var parent = first >= 0 ? key.slice(0, first) : key;
56135
56139
  if (parent) {
56136
56140
  if (!options.plainObjects && has.call(Object.prototype, parent)) {
56137
56141
  if (!options.allowPrototypes) {
56138
56142
  return;
56139
56143
  }
56140
56144
  }
56141
- keys2[keys2.length] = parent;
56142
- }
56143
- var i3 = 0;
56144
- while ((segment = child.exec(key)) !== null && i3 < options.depth) {
56145
- i3 += 1;
56146
- var segmentContent = segment[1].slice(1, -1);
56147
- if (!options.plainObjects && has.call(Object.prototype, segmentContent)) {
56148
- if (!options.allowPrototypes) {
56149
- return;
56145
+ segments[segments.length] = parent;
56146
+ }
56147
+ var n = key.length;
56148
+ var open = first;
56149
+ var collected = 0;
56150
+ while (open >= 0 && collected < options.depth) {
56151
+ var level = 1;
56152
+ var i3 = open + 1;
56153
+ var close = -1;
56154
+ while (i3 < n && close < 0) {
56155
+ var cu2 = key.charCodeAt(i3);
56156
+ if (cu2 === 91) {
56157
+ level += 1;
56158
+ } else if (cu2 === 93) {
56159
+ level -= 1;
56160
+ if (level === 0) {
56161
+ close = i3;
56162
+ }
56150
56163
  }
56164
+ i3 += 1;
56151
56165
  }
56152
- keys2[keys2.length] = segment[1];
56166
+ if (close < 0) {
56167
+ segments[segments.length] = "[" + key.slice(open) + "]";
56168
+ return segments;
56169
+ }
56170
+ var seg = key.slice(open, close + 1);
56171
+ var content = seg.slice(1, -1);
56172
+ if (!options.plainObjects && has.call(Object.prototype, content) && !options.allowPrototypes) {
56173
+ return;
56174
+ }
56175
+ segments[segments.length] = seg;
56176
+ collected += 1;
56177
+ open = key.indexOf("[", close + 1);
56153
56178
  }
56154
- if (segment) {
56179
+ if (open >= 0) {
56155
56180
  if (options.strictDepth === true) {
56156
56181
  throw new RangeError("Input depth exceeded depth option of " + options.depth + " and strictDepth is true");
56157
56182
  }
56158
- keys2[keys2.length] = "[" + key.slice(segment.index) + "]";
56183
+ segments[segments.length] = "[" + key.slice(open) + "]";
56159
56184
  }
56160
- return keys2;
56185
+ return segments;
56161
56186
  };
56162
56187
  var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
56163
56188
  if (!givenKey) {
@@ -77750,7 +77775,7 @@ function detectBrowser() {
77750
77775
  const glob = typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : typeof WorkerGlobalScope !== "undefined" ? self : {};
77751
77776
  const Konva$2 = {
77752
77777
  _global: glob,
77753
- version: "10.2.3",
77778
+ version: "10.3.0",
77754
77779
  isBrowser: detectBrowser(),
77755
77780
  isUnminified: /param/.test((function(param) {
77756
77781
  }).toString()),
@@ -80884,14 +80909,23 @@ let Node$1 = class Node2 {
80884
80909
  evt.type = eventType;
80885
80910
  const topListeners = this._getProtoListeners(eventType);
80886
80911
  if (topListeners) {
80887
- for (let i3 = 0; i3 < topListeners.length; i3++) {
80888
- topListeners[i3].handler.call(this, evt);
80912
+ const list = topListeners.slice();
80913
+ for (let i3 = 0; i3 < list.length; i3++) {
80914
+ list[i3].handler.call(this, evt);
80889
80915
  }
80890
80916
  }
80891
80917
  const selfListeners = this.eventListeners[eventType];
80892
80918
  if (selfListeners) {
80893
- for (let i3 = 0; i3 < selfListeners.length; i3++) {
80894
- selfListeners[i3].handler.call(this, evt);
80919
+ const list = selfListeners.slice();
80920
+ const origLen = list.length;
80921
+ for (let i3 = 0; i3 < list.length; i3++) {
80922
+ list[i3].handler.call(this, evt);
80923
+ }
80924
+ const liveListeners = this.eventListeners[eventType];
80925
+ if (liveListeners) {
80926
+ for (let i3 = origLen; i3 < liveListeners.length; i3++) {
80927
+ liveListeners[i3].handler.call(this, evt);
80928
+ }
80895
80929
  }
80896
80930
  }
80897
80931
  }
@@ -85993,6 +86027,38 @@ const AUTO = "auto", CENTER = "center", INHERIT = "inherit", JUSTIFY = "justify"
85993
86027
  "ellipsis",
85994
86028
  "letterSpacing"
85995
86029
  ], attrChangeListLen = ATTR_CHANGE_LIST$1.length;
86030
+ let _shadowOpacityBuggy = null;
86031
+ function hasShadowOpacityBug() {
86032
+ if (_shadowOpacityBuggy !== null) {
86033
+ return _shadowOpacityBuggy;
86034
+ }
86035
+ _shadowOpacityBuggy = false;
86036
+ try {
86037
+ const c = document.createElement("canvas");
86038
+ c.width = 10;
86039
+ c.height = 10;
86040
+ const ctx = c.getContext(CONTEXT_2D);
86041
+ if (ctx) {
86042
+ ctx.globalAlpha = 0;
86043
+ ctx.shadowColor = "black";
86044
+ ctx.shadowBlur = 5;
86045
+ ctx.shadowOffsetX = 5;
86046
+ ctx.shadowOffsetY = 5;
86047
+ ctx.fillStyle = "black";
86048
+ ctx.font = "10px Arial";
86049
+ ctx.fillText("X", 0, 10);
86050
+ const data = ctx.getImageData(0, 0, 10, 10).data;
86051
+ for (let i3 = 3; i3 < data.length; i3 += 4) {
86052
+ if (data[i3] > 0) {
86053
+ _shadowOpacityBuggy = true;
86054
+ break;
86055
+ }
86056
+ }
86057
+ }
86058
+ } catch (e6) {
86059
+ }
86060
+ return _shadowOpacityBuggy;
86061
+ }
85996
86062
  function normalizeFontFamily(fontFamily) {
85997
86063
  return fontFamily.split(",").map((family) => {
85998
86064
  family = family.trim();
@@ -86338,6 +86404,9 @@ class Text extends Shape {
86338
86404
  if (hasLine && hasShadow) {
86339
86405
  return true;
86340
86406
  }
86407
+ if (hasShadow && this.getAbsoluteOpacity() !== 1 && hasShadowOpacityBug()) {
86408
+ return true;
86409
+ }
86341
86410
  return super._useBufferCanvas();
86342
86411
  }
86343
86412
  }
@@ -86388,7 +86457,7 @@ class TextPath extends Shape {
86388
86457
  this._readDataAttribute();
86389
86458
  this._setTextData();
86390
86459
  });
86391
- this.on("textChange.konva alignChange.konva letterSpacingChange.konva kerningFuncChange.konva fontSizeChange.konva fontFamilyChange.konva", this._setTextData);
86460
+ this.on("textChange.konva alignChange.konva letterSpacingChange.konva kerningFuncChange.konva fontSizeChange.konva fontFamilyChange.konva directionChange.konva", this._setTextData);
86392
86461
  this._setTextData();
86393
86462
  }
86394
86463
  _getTextPathLength() {
@@ -86503,6 +86572,9 @@ class TextPath extends Shape {
86503
86572
  }
86504
86573
  _setTextData() {
86505
86574
  const charArr = stringToArray(this.text());
86575
+ if (this.direction() === "rtl") {
86576
+ charArr.reverse();
86577
+ }
86506
86578
  const chars = [];
86507
86579
  let width = 0;
86508
86580
  for (let i3 = 0; i3 < charArr.length; i3++) {
@@ -86633,6 +86705,7 @@ Factory.addGetterSetter(TextPath, "fontVariant", NORMAL);
86633
86705
  Factory.addGetterSetter(TextPath, "text", EMPTY_STRING);
86634
86706
  Factory.addGetterSetter(TextPath, "textDecoration", "");
86635
86707
  Factory.addGetterSetter(TextPath, "kerningFunc", void 0);
86708
+ Factory.addGetterSetter(TextPath, "direction", "inherit");
86636
86709
  const EVENTS_NAME = "tr-konva";
86637
86710
  const ATTR_CHANGE_LIST = [
86638
86711
  "resizeEnabledChange",
@@ -89513,7 +89586,7 @@ var hasRequiredJsbn;
89513
89586
  function requireJsbn() {
89514
89587
  if (hasRequiredJsbn) return jsbn$1.exports;
89515
89588
  hasRequiredJsbn = 1;
89516
- (function(module, exports$1) {
89589
+ (function(module, exports) {
89517
89590
  (function() {
89518
89591
  var dbits;
89519
89592
  var canary = 244837814094590;