@dazhicheng/ui 1.5.203 → 1.5.204

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 (149) hide show
  1. package/dist/_virtual/___vite-browser-external.js +6 -0
  2. package/dist/_virtual/__vite-browser-external.js +4 -0
  3. package/dist/_virtual/_commonjs-dynamic-modules.js +6 -0
  4. package/dist/_virtual/_commonjsHelpers.js +24 -0
  5. package/dist/_virtual/aes.js +4 -0
  6. package/dist/_virtual/cipher-core.js +4 -0
  7. package/dist/_virtual/core.js +4 -0
  8. package/dist/_virtual/enc-base64.js +4 -0
  9. package/dist/_virtual/enc-utf8.js +4 -0
  10. package/dist/_virtual/evpkdf.js +4 -0
  11. package/dist/_virtual/hmac.js +4 -0
  12. package/dist/_virtual/md5.js +4 -0
  13. package/dist/_virtual/mode-ecb.js +4 -0
  14. package/dist/_virtual/pad-pkcs7.js +4 -0
  15. package/dist/_virtual/sha1.js +4 -0
  16. package/dist/components/tt-api-component/index.js +17 -4
  17. package/dist/components/tt-api-component/index.vue2.js +24 -13
  18. package/dist/components/tt-area/TtArea.vue3.js +24 -13
  19. package/dist/components/tt-button/index.js +18 -5
  20. package/dist/components/tt-button/index.vue2.js +27 -16
  21. package/dist/components/tt-checkbox/index.js +17 -4
  22. package/dist/components/tt-checkbox/index.vue.js +38 -28
  23. package/dist/components/tt-drawer/index.js +17 -7
  24. package/dist/components/tt-drawer/src/RenderDrawer.vue.js +48 -36
  25. package/dist/components/tt-drawer/src/components/DrawerFooter.vue.js +39 -26
  26. package/dist/components/tt-drawer/src/components/DrawerHeader.vue2.js +23 -10
  27. package/dist/components/tt-drawer/src/props.js +22 -9
  28. package/dist/components/tt-drawer/src/utils/drawer-api.js +42 -33
  29. package/dist/components/tt-empty/index.js +28 -18
  30. package/dist/components/tt-form/index.js +22 -14
  31. package/dist/components/tt-form/src/components/ExpandableArrow.vue2.js +23 -14
  32. package/dist/components/tt-form/src/components/FormActions.vue2.js +42 -32
  33. package/dist/components/tt-form/src/form/FormDescription.vue.js +19 -10
  34. package/dist/components/tt-form/src/form/FormItem.vue.js +18 -9
  35. package/dist/components/tt-form/src/form/FormLabel.vue.js +18 -9
  36. package/dist/components/tt-form/src/form/RenderContent.vue.js +25 -13
  37. package/dist/components/tt-form/src/form-render/FormField.vue2.js +62 -55
  38. package/dist/components/tt-form/src/form-render/FormLabel.vue2.js +36 -28
  39. package/dist/components/tt-form/src/form-render/array-register/FormArrayRegister.js +64 -56
  40. package/dist/components/tt-form/src/form-render/array-register/utils.js +18 -8
  41. package/dist/components/tt-form/src/form-render/dependencies.js +36 -24
  42. package/dist/components/tt-form/src/form-render/form.vue2.js +17 -7
  43. package/dist/components/tt-form/src/form-render/helper.js +29 -16
  44. package/dist/components/tt-form/src/form-render/rootWrapperClass.js +17 -7
  45. package/dist/components/tt-form/src/formApi.js +59 -48
  46. package/dist/components/tt-form/src/group-form/GroupForm.vue2.js +17 -4
  47. package/dist/components/tt-form/src/group-form/GroupSection.vue2.js +67 -57
  48. package/dist/components/tt-form/src/group-form/LazyFormField.vue.js +55 -46
  49. package/dist/components/tt-form/src/group-form/groupFormApi.js +21 -10
  50. package/dist/components/tt-form/src/hooks/useForwardPriorityValues.js +27 -17
  51. package/dist/components/tt-form/src/hooks/useSelectCollapse.js +32 -23
  52. package/dist/components/tt-form/src/index.vue2.js +53 -45
  53. package/dist/components/tt-form/src/useFormContext.js +74 -62
  54. package/dist/components/tt-form-item-error-tooltip/index.js +18 -5
  55. package/dist/components/tt-form-item-error-tooltip/index.vue.js +32 -21
  56. package/dist/components/tt-icon/index.js +20 -7
  57. package/dist/components/tt-image/index.js +19 -6
  58. package/dist/components/tt-image/src/components/ImageViewer.js +27 -17
  59. package/dist/components/tt-loading/index.js +16 -4
  60. package/dist/components/tt-loading/src/directive.js +34 -22
  61. package/dist/components/tt-log/index.js +17 -4
  62. package/dist/components/tt-log/index.vue.js +21 -8
  63. package/dist/components/tt-modal/index.js +16 -5
  64. package/dist/components/tt-modal/src/RenderModal.vue.js +163 -151
  65. package/dist/components/tt-modal/src/components/ModalFooter.vue2.js +38 -28
  66. package/dist/components/tt-modal/src/components/ModalHeader.vue2.js +24 -11
  67. package/dist/components/tt-modal/src/components/ModalWrapper.vue.js +36 -23
  68. package/dist/components/tt-modal/src/props.js +22 -9
  69. package/dist/components/tt-modal/src/utils/modal-api.js +39 -29
  70. package/dist/components/tt-modal-form/index.vue.js +44 -36
  71. package/dist/components/tt-nav-anchor/index.js +17 -4
  72. package/dist/components/tt-nav-anchor/src/TtNavAnchor.vue.js +69 -57
  73. package/dist/components/tt-panel-select/index.js +17 -4
  74. package/dist/components/tt-panel-select/src/hooks/usePanelData.js +51 -40
  75. package/dist/components/tt-panel-select/src/index.vue.js +35 -24
  76. package/dist/components/tt-select/index.js +17 -4
  77. package/dist/components/tt-select/src/Select.vue.js +79 -68
  78. package/dist/components/tt-select/src/components/SelectTable.vue.js +41 -30
  79. package/dist/components/tt-select/src/components/Table.vue.js +86 -76
  80. package/dist/components/tt-select/src/hooks/useDataSource.js +59 -49
  81. package/dist/components/tt-select/src/hooks/useSelect.js +46 -38
  82. package/dist/components/tt-select/src/hooks/useSelectTableEvent.js +123 -112
  83. package/dist/components/tt-table/index.js +19 -12
  84. package/dist/components/tt-table/src/Table.vue.js +82 -71
  85. package/dist/components/tt-table/src/TableForm.vue.js +77 -65
  86. package/dist/components/tt-table/src/components/TableAction.vue.js +49 -39
  87. package/dist/components/tt-table/src/components/TableButtons.js +73 -60
  88. package/dist/components/tt-table/src/components/TableColumnModal.vue2.js +14 -3
  89. package/dist/components/tt-table/src/components/TableToobalTools.vue.js +36 -25
  90. package/dist/components/tt-table/src/hooks/useColumns.js +72 -65
  91. package/dist/components/tt-table/src/hooks/useCustomColumns.js +43 -31
  92. package/dist/components/tt-table/src/hooks/useDataSource.js +50 -42
  93. package/dist/components/tt-table/src/hooks/usePagination.js +36 -25
  94. package/dist/components/tt-table/src/props.js +55 -42
  95. package/dist/components/tt-table/src/utils/table-api.js +33 -22
  96. package/dist/components/tt-table/src/utils/table-form-api.js +35 -24
  97. package/dist/components/tt-text/index.js +17 -4
  98. package/dist/components/tt-upload/index.js +19 -6
  99. package/dist/components/tt-upload/src/TtUpload.vue.js +77 -66
  100. package/dist/directives/disabled-tip/index.js +37 -26
  101. package/dist/hooks/useFormSchemasLink.js +90 -79
  102. package/dist/hooks/useScreenshotOss.js +49 -35
  103. package/dist/node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js +17 -0
  104. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js +64 -0
  105. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/cipher-core.js +545 -0
  106. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/core.js +508 -0
  107. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-base64.js +81 -0
  108. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js +10 -0
  109. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/evpkdf.js +71 -0
  110. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/hmac.js +84 -0
  111. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/md5.js +72 -0
  112. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js +22 -0
  113. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js +11 -0
  114. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha1.js +50 -0
  115. package/dist/node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js +1024 -0
  116. package/dist/node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.js +32 -0
  117. package/dist/node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/apply-style.js +11 -0
  118. package/dist/node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/clone-node.js +92 -0
  119. package/dist/node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/clone-pseudos.js +34 -0
  120. package/dist/node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/dataurl.js +52 -0
  121. package/dist/node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/embed-images.js +43 -0
  122. package/dist/node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/embed-resources.js +47 -0
  123. package/dist/node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/embed-webfonts.js +122 -0
  124. package/dist/node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/index.js +30 -0
  125. package/dist/node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/mimes.js +24 -0
  126. package/dist/node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/util.js +106 -0
  127. package/dist/node_modules/.pnpm/is-plain-object@5.0.0/node_modules/is-plain-object/dist/is-plain-object.js +16 -0
  128. package/dist/node_modules/.pnpm/klona@2.0.6/node_modules/klona/full/index.js +21 -0
  129. package/dist/node_modules/.pnpm/tailwind-merge@3.5.0/node_modules/tailwind-merge/dist/bundle-mjs.js +2922 -0
  130. package/dist/node_modules/.pnpm/vue-types@5.1.3_vue@3.5.21_typescript@5.9.3_/node_modules/vue-types/shim/index.modern.js +93 -0
  131. package/dist/packages/hooks/src/propTypes.js +17 -0
  132. package/dist/packages/hooks/src/tools.js +6 -0
  133. package/dist/packages/hooks/src/useDebounce.js +32 -0
  134. package/dist/packages/hooks/src/useDesign.js +12 -0
  135. package/dist/packages/hooks/src/useElementScreenshot.js +136 -0
  136. package/dist/packages/hooks/src/useIsScroll.js +12 -0
  137. package/dist/packages/hooks/src/usePriorityValue.js +45 -0
  138. package/dist/packages/utils/src/calc.js +14 -0
  139. package/dist/packages/utils/src/check.js +10 -0
  140. package/dist/packages/utils/src/install.js +11 -0
  141. package/dist/packages/utils/src/is.js +64 -0
  142. package/dist/packages/utils/src/merge.js +13 -0
  143. package/dist/packages/utils/src/stateHandler.js +33 -0
  144. package/dist/packages/utils/src/string.js +6 -0
  145. package/dist/packages/utils/src/testid-helper.js +14 -0
  146. package/dist/packages/utils/src/tool.js +181 -0
  147. package/dist/plugins/default/renderCellContent.js +39 -28
  148. package/dist/plugins/vxeTable/switchStatus.js +37 -26
  149. package/package.json +1 -1
@@ -0,0 +1,93 @@
1
+ import { isPlainObject as u } from "../../../../is-plain-object@5.0.0/node_modules/is-plain-object/dist/is-plain-object.js";
2
+ const o = { silent: !1, logLevel: "warn" }, l = Object.defineProperty, c = Array.isArray || function(t) {
3
+ return Object.prototype.toString.call(t) === "[object Array]";
4
+ };
5
+ function e(t, s = {}, r = !1) {
6
+ const i = { _vueTypes_name: { value: t, writable: !0 }, def: { value(a) {
7
+ return a === void 0 ? ("default" in this && delete this.default, this) : (this.default = c(a) ? () => [].concat(a) : u(a) ? () => Object.assign({}, a) : a, this);
8
+ } }, isRequired: { get() {
9
+ return this.required = !0, this;
10
+ } } };
11
+ return r && (i.validate = { value() {
12
+ } }), s.validator || (s.validator = () => !0), Object.defineProperties(s, i);
13
+ }
14
+ const d = () => e("any", {}, !0), y = () => e("func", { type: Function }, !0), b = () => e("bool", { type: Boolean }, !0), g = () => e("string", { type: String }, !0), p = () => e("number", { type: Number }, !0), h = () => e("array", { type: Array }, !0), O = () => e("object", { type: Object }, !0), j = () => e("symbol"), m = () => e("integer", { type: Number }), v = (t) => e("oneOf"), T = (t) => e("custom"), A = (t) => e("instanceOf", { type: t }), w = (t) => e("oneOfType"), x = (t) => e("arrayOf", { type: Array }), D = (t) => e("objectOf", { type: Object }), N = (t) => l(e("shape", { type: Object }), "loose", { get() {
15
+ return this;
16
+ } });
17
+ function V(t, s, r, i = !1, a = !1) {
18
+ return l(t, s, { [i ? "get" : "value"]: () => e(s, Object.assign({}, r), a).def(i ? t.defaults[s] : void 0) });
19
+ }
20
+ const q = (t, s) => e(t, s), E = /* @__PURE__ */ ((t) => (t = class {
21
+ static get any() {
22
+ return d();
23
+ }
24
+ static get func() {
25
+ return y().def(this.defaults.func);
26
+ }
27
+ static get bool() {
28
+ return b().def(this.defaults.bool);
29
+ }
30
+ static get string() {
31
+ return g().def(this.defaults.string);
32
+ }
33
+ static get number() {
34
+ return p().def(this.defaults.number);
35
+ }
36
+ static get array() {
37
+ return h().def(this.defaults.array);
38
+ }
39
+ static get object() {
40
+ return O().def(this.defaults.object);
41
+ }
42
+ static get symbol() {
43
+ return j();
44
+ }
45
+ static get integer() {
46
+ return m().def(this.defaults.integer);
47
+ }
48
+ static get nullable() {
49
+ return { type: null };
50
+ }
51
+ static extend(s) {
52
+ if (c(s)) return s.forEach((f) => this.extend(f)), this;
53
+ const { name: r, validate: i, getter: a = !1, type: n = null } = s;
54
+ return V(this, r, { type: u(n) && n.type ? null : n }, a, !!i);
55
+ }
56
+ }, t.defaults = {}, t.sensibleDefaults = void 0, t.config = o, t.oneOf = v, t.custom = T, t.instanceOf = A, t.oneOfType = w, t.arrayOf = x, t.objectOf = D, t.shape = N, t.utils = { toType: e, validate: (...s) => !!s }, t))();
57
+ function P(t = { func: () => {
58
+ }, bool: !0, string: "", number: 0, array: () => [], object: () => ({}), integer: 0 }) {
59
+ var s;
60
+ return (s = class extends E {
61
+ static get sensibleDefaults() {
62
+ return Object.assign({}, this.defaults);
63
+ }
64
+ static set sensibleDefaults(r) {
65
+ this.defaults = r !== !1 ? Object.assign({}, r !== !0 ? r : t) : {};
66
+ }
67
+ }).defaults = Object.assign({}, t), s;
68
+ }
69
+ process.env.NODE_ENV !== "production" && o.silent;
70
+ class R extends P() {
71
+ }
72
+ export {
73
+ d as any,
74
+ h as array,
75
+ x as arrayOf,
76
+ b as bool,
77
+ o as config,
78
+ P as createTypes,
79
+ T as custom,
80
+ R as default,
81
+ y as func,
82
+ A as instanceOf,
83
+ m as integer,
84
+ p as number,
85
+ O as object,
86
+ D as objectOf,
87
+ v as oneOf,
88
+ w as oneOfType,
89
+ N as shape,
90
+ g as string,
91
+ j as symbol,
92
+ q as toType
93
+ };
@@ -0,0 +1,17 @@
1
+ import e, { toType as t } from "../../../node_modules/.pnpm/vue-types@5.1.3_vue@3.5.21_typescript@5.9.3_/node_modules/vue-types/shim/index.modern.js";
2
+ class r extends e {
3
+ static get style() {
4
+ return t("style", {
5
+ type: [String, Object],
6
+ default: void 0
7
+ });
8
+ }
9
+ static get VNodeChild() {
10
+ return t("VNodeChild", {
11
+ default: void 0
12
+ });
13
+ }
14
+ }
15
+ export {
16
+ r as propTypes
17
+ };
@@ -0,0 +1,6 @@
1
+ function i(a) {
2
+ return a.split("-").filter(Boolean).map((e, t) => t === 0 ? e : e.charAt(0).toUpperCase() + e.slice(1)).join("");
3
+ }
4
+ export {
5
+ i as kebabToCamelCase
6
+ };
@@ -0,0 +1,32 @@
1
+ import "axios";
2
+ import "element-plus";
3
+ import "dayjs";
4
+ import "vue";
5
+ import { debounce as m } from "../../utils/src/tool.js";
6
+ import "../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
7
+ import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
8
+ import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
9
+ import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
10
+ import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
11
+ import "lodash-es";
12
+ function h(r, t, i) {
13
+ const o = m(r, t, i);
14
+ return {
15
+ /**
16
+ * 防抖函数,保持原函数的返回类型
17
+ * 如果原函数是异步的,返回 Promise;如果是同步的,返回原始类型
18
+ */
19
+ run: o,
20
+ /**
21
+ * 取消防抖
22
+ */
23
+ cancel: o.cancel,
24
+ /**
25
+ * 立即执行防抖函数,保持原函数的返回类型
26
+ */
27
+ flush: o.flush
28
+ };
29
+ }
30
+ export {
31
+ h as useDebounceFn
32
+ };
@@ -0,0 +1,12 @@
1
+ function s(r) {
2
+ const e = {
3
+ prefixCls: "tt"
4
+ };
5
+ return {
6
+ prefixCls: `${e.prefixCls}-${r}`,
7
+ prefixVar: e.prefixCls
8
+ };
9
+ }
10
+ export {
11
+ s as useDesign
12
+ };
@@ -0,0 +1,136 @@
1
+ import { ref as E, getCurrentInstance as O, render as w, nextTick as h, toValue as k, isVNode as B, h as N } from "vue";
2
+ import "axios";
3
+ import "element-plus";
4
+ import { isNumber as P } from "../../utils/src/is.js";
5
+ import "xe-utils";
6
+ import "dayjs";
7
+ import "dayjs/plugin/utc";
8
+ import "dayjs/plugin/timezone";
9
+ import "../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
10
+ import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
11
+ import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
12
+ import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
13
+ import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
14
+ import "lodash-es";
15
+ import { toBlob as q, toJpeg as A, toPng as M } from "../../../node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/index.js";
16
+ const W = "position:fixed;left:-10000px;top:0;pointer-events:none;z-index:-1;";
17
+ function b(e) {
18
+ const t = k(e);
19
+ if (!t)
20
+ throw new Error("Target element not found");
21
+ return t;
22
+ }
23
+ function U(e) {
24
+ return {
25
+ pixelRatio: (e == null ? void 0 : e.pixelRatio) ?? Math.min(window.devicePixelRatio || 2, 3),
26
+ backgroundColor: (e == null ? void 0 : e.backgroundColor) ?? "#ffffff",
27
+ cacheBust: (e == null ? void 0 : e.cacheBust) ?? !0,
28
+ quality: (e == null ? void 0 : e.quality) ?? 1,
29
+ skipFontsReady: (e == null ? void 0 : e.skipFontsReady) ?? !1,
30
+ filter: e == null ? void 0 : e.filter
31
+ // includeStyleProperties: ["hidden"],
32
+ };
33
+ }
34
+ async function V(e) {
35
+ e || typeof document > "u" || !("fonts" in document) || await document.fonts.ready;
36
+ }
37
+ async function i(e = 16) {
38
+ await h(), await new Promise((t) => requestAnimationFrame(() => t())), await new Promise((t) => requestAnimationFrame(() => t())), e > 0 && await new Promise((t) => setTimeout(t, e));
39
+ }
40
+ function _(e) {
41
+ const t = (e == null ? void 0 : e.width) ?? document.documentElement.clientWidth;
42
+ if (P(e == null ? void 0 : e.width) && t > 0)
43
+ return `${Math.round(t)}px`;
44
+ const f = document.documentElement.clientWidth || window.innerWidth;
45
+ return `${Math.round(f)}px`;
46
+ }
47
+ function $(e, t) {
48
+ e.style.cssText = (t == null ? void 0 : t.containerStyle) ?? W, (!(t != null && t.containerStyle) || !/width\s*:/i.test(t.containerStyle)) && (e.style.width = _(t));
49
+ }
50
+ function p() {
51
+ var y;
52
+ const e = E(!1), t = E(null), f = ((y = O()) == null ? void 0 : y.appContext) ?? null;
53
+ async function d(u, r) {
54
+ await V(r == null ? void 0 : r.skipFontsReady);
55
+ const a = U(r);
56
+ if (((r == null ? void 0 : r.output) ?? "dataUrl") === "blob") {
57
+ const c = await q(u, a);
58
+ if (!c)
59
+ throw new Error("Failed to generate screenshot blob");
60
+ return c;
61
+ }
62
+ return ((r == null ? void 0 : r.format) ?? "png") === "jpeg" ? await A(u, a) : await M(u, a);
63
+ }
64
+ function C(u, r) {
65
+ const a = B(u) ? u : N(u, r == null ? void 0 : r.props);
66
+ return f && (a.appContext = f), a;
67
+ }
68
+ async function g(u, r) {
69
+ var l;
70
+ const a = document.body, n = document.createElement("div");
71
+ $(n, r), a.appendChild(n);
72
+ try {
73
+ const c = C(u, r);
74
+ w(c, n), await h(), await ((l = r == null ? void 0 : r.beforeCapture) == null ? void 0 : l.call(r, n)), await h(), await i((r == null ? void 0 : r.deferCaptureMs) ?? 16);
75
+ const m = r == null ? void 0 : r.selector, v = m ? n.querySelector(m) : n.firstChild;
76
+ if (!v)
77
+ throw new Error(`截图元素没有找到: ${m}`);
78
+ return { container: n, target: v };
79
+ } catch (c) {
80
+ throw w(null, n), n.remove(), c;
81
+ }
82
+ }
83
+ function x(u) {
84
+ w(null, u), u.remove();
85
+ }
86
+ async function T(u, r) {
87
+ await i((r == null ? void 0 : r.deferCaptureMs) ?? 16);
88
+ const a = b(u);
89
+ return await d(a, { ...r, output: "blob" });
90
+ }
91
+ async function R(u, r) {
92
+ e.value = !0, t.value = null;
93
+ try {
94
+ return await T(u, r);
95
+ } catch (a) {
96
+ const n = a instanceof Error ? a : new Error(String(a));
97
+ throw t.value = n, n;
98
+ } finally {
99
+ e.value = !1;
100
+ }
101
+ }
102
+ async function F(u, r) {
103
+ e.value = !0, t.value = null;
104
+ try {
105
+ await i((r == null ? void 0 : r.deferCaptureMs) ?? 16);
106
+ const a = b(u);
107
+ return await d(a, { ...r, output: "dataUrl" });
108
+ } catch (a) {
109
+ const n = a instanceof Error ? a : new Error(String(a));
110
+ throw t.value = n, n;
111
+ } finally {
112
+ e.value = !1;
113
+ }
114
+ }
115
+ async function S(u, r) {
116
+ e.value = !0, t.value = null;
117
+ const { container: a, target: n } = await g(u, r);
118
+ try {
119
+ return await d(n, r);
120
+ } catch (l) {
121
+ const c = l instanceof Error ? l : new Error(String(l));
122
+ throw t.value = c, c;
123
+ } finally {
124
+ x(a), e.value = !1;
125
+ }
126
+ }
127
+ return {
128
+ captureToBlob: R,
129
+ captureToDataUrl: F,
130
+ captureComponent: S,
131
+ isCapturing: e
132
+ };
133
+ }
134
+ export {
135
+ p as useElementScreenshot
136
+ };
@@ -0,0 +1,12 @@
1
+ import { ref as l } from "vue";
2
+ function a() {
3
+ const e = l(!1);
4
+ return { hasScrollbar: e, update: (t) => {
5
+ if (!t.value) return;
6
+ const r = t.value;
7
+ e.value = r.scrollHeight > r.clientHeight;
8
+ } };
9
+ }
10
+ export {
11
+ a as useIsScroll
12
+ };
@@ -0,0 +1,45 @@
1
+ import { kebabToCamelCase as a } from "../../utils/src/string.js";
2
+ import "axios";
3
+ import "element-plus";
4
+ import "dayjs";
5
+ import { toValue as v, getCurrentInstance as d, useSlots as b, useAttrs as O, computed as P } from "vue";
6
+ import { getFirstNonNullOrUndefined as V } from "../../utils/src/tool.js";
7
+ import "../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
8
+ import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
9
+ import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
10
+ import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
11
+ import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
12
+ import "lodash-es";
13
+ function g(o, e, r) {
14
+ const t = d(), u = b(), c = O();
15
+ return P(() => {
16
+ var i, s;
17
+ const m = ((i = t == null ? void 0 : t.vnode) == null ? void 0 : i.props) || {}, n = {};
18
+ for (const [l, f] of Object.entries(m))
19
+ n[a(l)] = f;
20
+ const p = (n == null ? void 0 : n[o]) === void 0 ? void 0 : e[o];
21
+ return V(
22
+ u[o],
23
+ c[o],
24
+ p,
25
+ (s = r == null ? void 0 : r.value) == null ? void 0 : s[o]
26
+ );
27
+ });
28
+ }
29
+ function U(o, e) {
30
+ const r = {};
31
+ return Object.keys(o).forEach((t) => {
32
+ r[t] = g(t, o, e);
33
+ }), r;
34
+ }
35
+ function q(o) {
36
+ const e = {};
37
+ for (const [r, t] of Object.entries(o))
38
+ e[r] = v(t);
39
+ return e;
40
+ }
41
+ export {
42
+ q as getPriorityValues,
43
+ g as usePriorityValue,
44
+ U as usePriorityValues
45
+ };
@@ -0,0 +1,14 @@
1
+ import { Decimal as o } from "../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
2
+ function i(...e) {
3
+ let n = new o(e[0] ?? 0);
4
+ for (let t = 1; t < e.length; t++) n = n.add(new o(e[t] ?? 0));
5
+ return n.toNumber();
6
+ }
7
+ function l(e) {
8
+ const n = Number(e) || e === 0, t = Number.isNaN(Number(e)), r = new o(e);
9
+ return n && !t ? r : new o(Number.NaN);
10
+ }
11
+ export {
12
+ i as add,
13
+ l as calc
14
+ };
@@ -0,0 +1,10 @@
1
+ function a(r, t, n, i) {
2
+ if (!r) return !1;
3
+ const e = r.split(".").map((s) => Number(s));
4
+ if (e.length < 2) return !1;
5
+ const f = e[0], u = e[1];
6
+ return e[2], f > t ? !0 : f < t ? !1 : u > n ? !0 : !(u < n);
7
+ }
8
+ export {
9
+ a as checkVersion
10
+ };
@@ -0,0 +1,11 @@
1
+ function l(t, c) {
2
+ return t.install = (e) => {
3
+ for (const n of [t, ...Object.values({})]) {
4
+ const o = n.name;
5
+ o && e.component(o, n);
6
+ }
7
+ }, t;
8
+ }
9
+ export {
10
+ l as withInstall
11
+ };
@@ -0,0 +1,64 @@
1
+ import i from "dayjs";
2
+ const u = Object.prototype.toString;
3
+ function t(n, r) {
4
+ return u.call(n) === `[object ${r}]`;
5
+ }
6
+ function f(n) {
7
+ return typeof n < "u";
8
+ }
9
+ function o(n) {
10
+ return !f(n);
11
+ }
12
+ function s(n) {
13
+ return n === null;
14
+ }
15
+ function e(n) {
16
+ return o(n) || s(n);
17
+ }
18
+ function c(n) {
19
+ return e(n) ? !1 : n instanceof Promise ? !0 : t(n, "Object");
20
+ }
21
+ function p(n) {
22
+ return e(n) ? !0 : j(n) || y(n) ? n.length === 0 : n instanceof Map || n instanceof Set ? n.size === 0 : c(n) ? Object.keys(n).length === 0 : !1;
23
+ }
24
+ function b(n) {
25
+ return t(n, "Date");
26
+ }
27
+ function d(n) {
28
+ return t(n, "Number") && n === n;
29
+ }
30
+ function y(n) {
31
+ return t(n, "String");
32
+ }
33
+ function g(n) {
34
+ return typeof n == "function";
35
+ }
36
+ function D(n) {
37
+ return t(n, "Boolean");
38
+ }
39
+ function j(n) {
40
+ return n && Array.isArray(n);
41
+ }
42
+ function O(n) {
43
+ return typeof Element > "u" ? !1 : n instanceof Element;
44
+ }
45
+ function a(n) {
46
+ return i.isDayjs(n);
47
+ }
48
+ export {
49
+ t as is,
50
+ j as isArray,
51
+ D as isBoolean,
52
+ b as isDate,
53
+ a as isDayjsObject,
54
+ f as isDef,
55
+ O as isElement,
56
+ p as isEmpty,
57
+ g as isFunction,
58
+ s as isNull,
59
+ e as isNullOrUnDef,
60
+ d as isNumber,
61
+ c as isObject,
62
+ y as isString,
63
+ o as isUndefined
64
+ };
@@ -0,0 +1,13 @@
1
+ import { createDefu as a } from "../../../node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.js";
2
+ function f(m, ...r) {
3
+ let c = [];
4
+ const i = r[r.length - 1];
5
+ return r.length > 0 && Array.isArray(i) && i.every((e) => ["string", "number", "symbol"].includes(typeof e)) && (c = r.pop()), a((e, t, y) => {
6
+ if (c.includes(t) || Array.isArray(e[t]) && Array.isArray(y))
7
+ return e[t] = y, !0;
8
+ })(m, ...r);
9
+ }
10
+ export {
11
+ a as createMerge,
12
+ f as mergeWithArrayOverride
13
+ };
@@ -0,0 +1,33 @@
1
+ var t = Object.defineProperty;
2
+ var n = (e, s, i) => s in e ? t(e, s, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[s] = i;
3
+ var o = (e, s, i) => n(e, typeof s != "symbol" ? s + "" : s, i);
4
+ class h {
5
+ constructor() {
6
+ o(this, "condition", !1);
7
+ o(this, "promiseResolvers", null);
8
+ }
9
+ isConditionTrue() {
10
+ return this.condition;
11
+ }
12
+ reset() {
13
+ this.condition = !1, this.clearPromises();
14
+ }
15
+ setConditionFalse() {
16
+ this.condition = !1, this.promiseResolvers && (this.promiseResolvers.reject(), this.clearPromises());
17
+ }
18
+ setConditionTrue() {
19
+ this.condition = !0, this.promiseResolvers && (this.promiseResolvers.resolve(), this.clearPromises());
20
+ }
21
+ waitForCondition() {
22
+ if (this.condition)
23
+ return Promise.resolve();
24
+ const { promise: s, resolve: i, reject: r } = Promise.withResolvers();
25
+ return this.promiseResolvers = { resolve: i, reject: r }, s;
26
+ }
27
+ clearPromises() {
28
+ this.promiseResolvers = null;
29
+ }
30
+ }
31
+ export {
32
+ h as StateHandler
33
+ };
@@ -0,0 +1,6 @@
1
+ function o(a) {
2
+ return a.replace(/-(\w)/g, (r, e) => e ? e.toUpperCase() : "");
3
+ }
4
+ export {
5
+ o as kebabToCamelCase
6
+ };
@@ -0,0 +1,14 @@
1
+ function n(e) {
2
+ return typeof e == "string" ? e.trim() : typeof e == "function" ? (e.name || "").replace(/^bound\s+/i, "") : "";
3
+ }
4
+ function t(...e) {
5
+ return e.filter((r) => r != null && r !== "").join("-");
6
+ }
7
+ function o(e) {
8
+ return e ? e.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/([A-Z])([A-Z][a-z])/g, "$1-$2").replace(/[\s_]+/g, "-").replace(/[^\w\u4E00-\u9FA5-]+/g, "-").toLowerCase().replace(/^-+|-+$/g, "").replace(/-+/g, "-") : "";
9
+ }
10
+ export {
11
+ n as extractResourceFromApi,
12
+ t as generateTestId,
13
+ o as toKebabCase
14
+ };