dlzn-ui 2.0.48 → 2.0.49

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 (30) hide show
  1. package/assets/{Index-Y4khRYm7.css → Index-CReJVvrl.css} +1 -1
  2. package/assets/IndexItem-CFzZEfgr.css +1 -0
  3. package/chunks/{Index-CZnP6jHo.mjs → Index-4ZZV0mpO.mjs} +10 -9
  4. package/chunks/Index-yibfwUn-.mjs +34 -0
  5. package/chunks/IndexItem-j2WiPqiw.mjs +70 -0
  6. package/chunks/{overview-SpRnc3-2.mjs → overview-SxBciHX7.mjs} +1 -1
  7. package/chunks/typography-text-Bq9jEbxG.mjs +45 -0
  8. package/components/index.mjs +1 -1
  9. package/components/overview/index.mjs +1 -1
  10. package/components/overview/src/IndexItem.mjs +1 -1
  11. package/components/overview/src/overview.d.ts +2 -2
  12. package/components/overview/src/overview.mjs +1 -1
  13. package/components/typography-text/index.d.ts +2 -0
  14. package/components/typography-text/index.mjs +2 -0
  15. package/components/typography-text/src/copy.mjs +17 -0
  16. package/components/typography-text/src/copy.vue.d.ts +3 -0
  17. package/components/typography-text/src/typography-text.d.ts +2 -0
  18. package/components/typography-text/src/typography-text.mjs +2 -0
  19. package/components/typography-text/src/typography-text.vue.d.ts +3 -0
  20. package/package.json +1 -1
  21. package/plugins/tableRenders/cell/TypographyText/Index.mjs +1 -1
  22. package/plugins/tableRenders/cell/TypographyText/index.d.ts +2 -2
  23. package/plugins/tableRenders/cell/TypographyTextLink/Index.mjs +1 -1
  24. package/plugins/tableRenders/cell/TypographyTextLink/Index.vue.d.ts +1 -1
  25. package/plugins/tableRenders/cell/TypographyTextLink/index.d.ts +2 -2
  26. package/plugins/tableRenders/cell/index.mjs +2 -2
  27. package/proj-template/pnpm-workspace.yaml +1 -0
  28. package/assets/IndexItem-CfYDJ95Q.css +0 -1
  29. package/chunks/Index-CT0eb17V.mjs +0 -33
  30. package/chunks/IndexItem-DsYwi-MU.mjs +0 -71
@@ -1 +1 @@
1
- .t-table .t-typography:has(.t-button){line-height:32px}.t-table .t-typography:has(.t-button) .t-button{position:absolute;right:0}.t-table .text-ellipsis:has(>.t-typography){padding-right:32px;position:relative}
1
+ .t-table .t-typography:has(.t-button){line-height:32px}.t-table .t-typography:has(.t-button) .t-button{position:absolute;right:0}.t-table .text-ellipsis:has(>.t-typography>.t-button){padding-right:32px;position:relative}
@@ -0,0 +1 @@
1
+ .t-typography[data-v-eba4c946]>p{white-space:nowrap!important}
@@ -1,9 +1,10 @@
1
- import { createBlock as e, createTextVNode as t, defineComponent as n, guardReactiveProps as r, normalizeProps as i, openBlock as a, toDisplayString as o, unref as s, useAttrs as c, withCtx as l } from "vue";
2
- import { Text as u } from "tdesign-vue-next";
1
+ import { t as e } from "./typography-text-Bq9jEbxG.mjs";
2
+ import "../components/typography-text/index.mjs";
3
+ import { createBlock as t, createTextVNode as n, defineComponent as r, guardReactiveProps as i, normalizeProps as a, openBlock as o, toDisplayString as s, unref as c, useAttrs as l, withCtx as u } from "vue";
3
4
  import { get as d } from "lodash-es";
4
- import '../assets/Index-Y4khRYm7.css';//#endregion
5
+ import '../assets/Index-CReJVvrl.css';//#endregion
5
6
  //#region ../../packages/dlzn-ui/plugins/tableRenders/cell/TypographyText/Index.vue
6
- var f = /* @__PURE__ */ n({
7
+ var f = /* @__PURE__ */ r({
7
8
  inheritAttrs: !1,
8
9
  __name: "Index",
9
10
  props: {
@@ -24,13 +25,13 @@ var f = /* @__PURE__ */ n({
24
25
  theme: {},
25
26
  underline: { type: Boolean }
26
27
  },
27
- setup(n) {
28
- let f = n, p = c();
29
- return (n, c) => (a(), e(s(u), i(r({
28
+ setup(r) {
29
+ let f = r, p = l();
30
+ return (r, l) => (o(), t(c(e), a(i({
30
31
  ...f,
31
- copyable: f.copyable === !0 ? { text: s(d)(s(p).row, s(p).col.colKey) } : f.copyable
32
+ copyable: f.copyable === !0 ? { text: c(d)(c(p).row, c(p).col.colKey) } : f.copyable
32
33
  })), {
33
- default: l(() => [t(o(s(d)(s(p).row, s(p).col.colKey)), 1)]),
34
+ default: u(() => [n(s(c(d)(c(p).row, c(p).col.colKey)), 1)]),
34
35
  _: 1
35
36
  }, 16));
36
37
  }
@@ -0,0 +1,34 @@
1
+ import { n as e, t } from "./link-nbeAJ6Mt.mjs";
2
+ import "../components/link/index.mjs";
3
+ import { t as n } from "./typography-text-Bq9jEbxG.mjs";
4
+ import "../components/typography-text/index.mjs";
5
+ import { createBlock as r, createTextVNode as i, createVNode as a, defineComponent as o, guardReactiveProps as s, normalizeProps as c, openBlock as l, toDisplayString as u, unref as d, useAttrs as f, withCtx as p } from "vue";
6
+ import { get as m } from "lodash-es";
7
+ //#endregion
8
+ //#region ../../packages/dlzn-ui/plugins/tableRenders/cell/TypographyTextLink/Index.vue
9
+ var h = /* @__PURE__ */ o({
10
+ inheritAttrs: !1,
11
+ __name: "Index",
12
+ props: {
13
+ link: { default: () => ({}) },
14
+ typographyText: { default: () => ({ copyable: !0 }) }
15
+ },
16
+ setup(o) {
17
+ let h = f();
18
+ return (f, g) => (l(), r(d(n), c(s({
19
+ ...o.typographyText,
20
+ copyable: o.typographyText.copyable === !0 ? { text: d(m)(d(h).row, d(h).col.colKey) } : o.typographyText.copyable
21
+ })), {
22
+ default: p(() => [a(d(t), c(s({
23
+ ...d(e),
24
+ ...o.link
25
+ })), {
26
+ default: p(() => [i(u(d(m)(d(h).row, d(h).col.colKey)), 1)]),
27
+ _: 1
28
+ }, 16)]),
29
+ _: 1
30
+ }, 16));
31
+ }
32
+ });
33
+ //#endregion
34
+ export { h as t };
@@ -0,0 +1,70 @@
1
+ import { getDomRangeWidth as e } from "../utils/dom.mjs";
2
+ import "./utils-ag05P503.mjs";
3
+ import { stringDisplay as t } from "../utils/string.mjs";
4
+ import { t as n } from "./plugin-vue_export-helper-B3ysoDQm.mjs";
5
+ import { t as r } from "./typography-text-Bq9jEbxG.mjs";
6
+ import "../components/typography-text/index.mjs";
7
+ import { t as i } from "./Index-LNJ_79uk.mjs";
8
+ import { t as a } from "./Index-CU4eFnsQ.mjs";
9
+ import { createBlock as o, createElementBlock as s, createElementVNode as c, createVNode as l, defineComponent as u, guardReactiveProps as d, h as f, mergeProps as p, normalizeProps as m, openBlock as h, ref as g, resolveDynamicComponent as _, toDisplayString as v, unref as y, useTemplateRef as b, withCtx as x } from "vue";
10
+ import { useResizeObserver as S, useThrottleFn as C } from "@vueuse/core";
11
+ import { defaultsDeep as w } from "lodash-es";
12
+ import '../assets/IndexItem-CFzZEfgr.css';//#region ../../packages/dlzn-ui/components/overview/src/IndexItem.vue?vue&type=script&setup=true&lang.ts
13
+ var T = { class: "shrink-0 text-(--td-text-color-placeholder)" }, E = /*#__PURE__*/ n(/* @__PURE__ */ u({
14
+ __name: "IndexItem",
15
+ props: { item: {} },
16
+ setup(n) {
17
+ let u = /* #__PURE__ */ Object.assign({
18
+ "./DicLabel/Index.vue": i,
19
+ "./OptionLabel/Index.vue": a
20
+ });
21
+ function E(e) {
22
+ return D(e) ? () => f(u[`./${e.component}/Index.vue`], e) : () => f("span", t(e));
23
+ }
24
+ function D(e) {
25
+ return typeof e == "object" && !!e && "component" in e;
26
+ }
27
+ let O = g(!0), k = b("textRef"), A = C(() => {
28
+ if (k.value === null) return;
29
+ let t = k.value.$el.querySelector(":scope > p");
30
+ t !== null && (O.value = e(t) > t.getBoundingClientRect().width);
31
+ }, 500, !0);
32
+ S(k, A);
33
+ let j = g("");
34
+ function M() {
35
+ let e = k.value?.$el;
36
+ if (!e) return;
37
+ let t = e.querySelectorAll(".t-tag");
38
+ if (t.length > 0) {
39
+ j.value = [...t].map((e) => e.textContent.trim() ?? "").filter(Boolean).join(",");
40
+ return;
41
+ }
42
+ j.value = k.value?.$el.textContent.trim() ?? "";
43
+ }
44
+ function N() {
45
+ A(), M();
46
+ }
47
+ return (e, t) => (h(), s("div", m(d(p({ class: "flex items-center" }, {
48
+ class: n.item.class,
49
+ style: n.item.style
50
+ }))), [c("span", T, v(n.item.label) + ":", 1), l(y(r), p({
51
+ ref_key: "textRef",
52
+ ref: k,
53
+ class: "my-0! flex-1 overflow-hidden"
54
+ }, y(w)({
55
+ ...n.item.textProps ?? {},
56
+ copyable: n.item.textProps?.copyable === !0 ? { text: j.value } : n.item.textProps?.copyable
57
+ }, { ellipsis: !O.value || { tooltipProps: {
58
+ content: E(n.item.content),
59
+ theme: "light"
60
+ } } }), {
61
+ onVnodeMounted: N,
62
+ onVnodeUpdated: N
63
+ }), {
64
+ default: x(() => [(h(), o(_(E(n.item.content))))]),
65
+ _: 1
66
+ }, 16)], 16));
67
+ }
68
+ }), [["__scopeId", "data-v-eba4c946"]]);
69
+ //#endregion
70
+ export { E as t };
@@ -1,4 +1,4 @@
1
- import { t as e } from "./IndexItem-DsYwi-MU.mjs";
1
+ import { t as e } from "./IndexItem-j2WiPqiw.mjs";
2
2
  import { Fragment as t, createBlock as n, createElementBlock as r, defineComponent as i, normalizeStyle as a, openBlock as o, renderList as s } from "vue";
3
3
  //#endregion
4
4
  //#region ../../packages/dlzn-ui/components/overview/src/overview.vue
@@ -0,0 +1,45 @@
1
+ import e from "../components/typography-text/src/copy.mjs";
2
+ import { computed as t, createBlock as n, defineComponent as r, getCurrentInstance as i, h as a, mergeProps as o, openBlock as s, resolveDynamicComponent as c, unref as l } from "vue";
3
+ import { Text as u } from "tdesign-vue-next";
4
+ //#endregion
5
+ //#region ../../packages/dlzn-ui/components/typography-text/src/typography-text.vue
6
+ var d = /* @__PURE__ */ r({
7
+ inheritAttrs: !1,
8
+ name: "TTypographyText",
9
+ __name: "typography-text",
10
+ props: {
11
+ code: { type: Boolean },
12
+ content: {},
13
+ copyable: { type: [Boolean, Object] },
14
+ default: {},
15
+ delete: { type: Boolean },
16
+ disabled: { type: Boolean },
17
+ ellipsis: { type: [Boolean, Object] },
18
+ italic: { type: Boolean },
19
+ keyboard: { type: Boolean },
20
+ mark: { type: [String, Boolean] },
21
+ strong: { type: Boolean },
22
+ theme: {},
23
+ underline: { type: Boolean }
24
+ },
25
+ setup(r) {
26
+ let d = r, f = t(() => {
27
+ let t = { ...d };
28
+ return t.copyable === !0 && (t.copyable = {}), typeof t.copyable == "object" && t.copyable !== null && (t.copyable = {
29
+ suffix: (t) => t(e),
30
+ ...t.copyable
31
+ }), Object.keys(t).forEach((e) => {
32
+ t[e] === void 0 && delete t[e];
33
+ }), t;
34
+ }), p = i();
35
+ function m(e) {
36
+ p.exposed = e ?? {};
37
+ }
38
+ return (e, t) => (s(), n(c(a(l(u), o(e.$attrs, {
39
+ ...f.value,
40
+ ref: m
41
+ }), e.$slots))));
42
+ }
43
+ });
44
+ //#endregion
45
+ export { d as t };
@@ -52,7 +52,7 @@ import "./page-list/index.mjs";
52
52
  import { t as re } from "../chunks/custom-page-list-DZS45Fs5.mjs";
53
53
  import "./custom-page-list/index.mjs";
54
54
  import { t as ie } from "../chunks/overview-BvLGalk-.mjs";
55
- import { t as ae } from "../chunks/overview-SpRnc3-2.mjs";
55
+ import { t as ae } from "../chunks/overview-SxBciHX7.mjs";
56
56
  import "./overview/index.mjs";
57
57
  import { t as oe } from "../chunks/tab-panel-yh4fFZ2r.mjs";
58
58
  import "./tab-panel/index.mjs";
@@ -1,3 +1,3 @@
1
1
  import { t as e } from "../../chunks/overview-BvLGalk-.mjs";
2
- import { t } from "../../chunks/overview-SpRnc3-2.mjs";
2
+ import { t } from "../../chunks/overview-SxBciHX7.mjs";
3
3
  export { t as TOverview, e as getSplitSymbolValue };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../chunks/IndexItem-DsYwi-MU.mjs";
1
+ import { t as e } from "../../../chunks/IndexItem-j2WiPqiw.mjs";
2
2
  export { e as default };
@@ -1,7 +1,7 @@
1
- import { TdTextProps } from 'tdesign-vue-next';
2
1
  import { ClassValue, StyleValue } from 'vue';
3
2
  import { DicLabelProps } from './DicLabel/index.ts';
4
3
  import { OptionLabelProps } from './OptionLabel/index.ts';
4
+ import { TypographyTextProps } from '../../typography-text';
5
5
  export type ContentComponentConfig = {
6
6
  [K in keyof ComponentPropsMap]: ComponentConfig<K>;
7
7
  }[keyof ComponentPropsMap];
@@ -10,7 +10,7 @@ export interface Item {
10
10
  content: ContentComponentConfig | PettyPrimitive;
11
11
  label: string;
12
12
  style?: StyleValue;
13
- textProps?: TdTextProps;
13
+ textProps?: TypographyTextProps;
14
14
  }
15
15
  type ComponentConfig<T extends keyof ComponentPropsMap> = ComponentPropsMap[T] & {
16
16
  component: T;
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../chunks/overview-SpRnc3-2.mjs";
1
+ import { t as e } from "../../../chunks/overview-SxBciHX7.mjs";
2
2
  export { e as default };
@@ -0,0 +1,2 @@
1
+ export * from './src/typography-text';
2
+ export { default as TTypographyText } from './src/typography-text.vue';
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../../chunks/typography-text-Bq9jEbxG.mjs";
2
+ export { e as TTypographyText };
@@ -0,0 +1,17 @@
1
+ import { t as e } from "../../../chunks/plugin-vue_export-helper-B3ysoDQm.mjs";
2
+ import { createElementBlock as t, createElementVNode as n, openBlock as r } from "vue";
3
+ //#region ../../packages/dlzn-ui/components/typography-text/src/copy.vue
4
+ var i = {}, a = {
5
+ viewBox: "-0.20000000298023224 2.3399999141693115 93.36000061035156 45.900001525878906",
6
+ width: "1.86em",
7
+ xmlns: "http://www.w3.org/2000/svg"
8
+ };
9
+ function o(e, i) {
10
+ return r(), t("svg", a, [...i[0] ||= [n("path", {
11
+ d: "M13.87 33.59Q12.11 35.35 10.45 36.82Q8.79 38.28 5.86 40.23Q5.08 39.26 2.93 37.70Q6.84 35.55 9.67 33.01Q12.50 30.47 13.87 27.73L8.59 27.73Q8.79 25.39 8.79 22.85L8.79 13.09Q6.45 15.43 2.73 18.36Q1.37 16.60-0.20 15.43Q4.49 12.89 7.71 9.38Q10.94 5.86 12.70 2.34Q14.65 3.52 16.60 4.10Q15.63 4.88 13.87 7.03L35.16 7.03Q37.50 7.03 42.19 6.84L42.19 10.16Q39.06 9.96 36.33 9.96L12.11 9.96Q10.55 11.52 8.98 12.89L38.09 12.89Q37.89 15.63 37.89 20.51Q37.89 25.20 38.09 27.73L18.16 27.73Q17.38 28.91 16.02 30.66L37.30 30.66Q34.96 34.38 32.52 36.91Q30.08 39.45 27.34 41.41Q30.47 42.38 35.06 43.16Q39.65 43.95 45.12 44.14Q44.14 45.51 43.16 48.05Q34.96 46.88 30.37 45.70Q25.78 44.53 23.63 43.55Q18.75 45.51 14.16 46.48Q9.57 47.46 2.93 48.24Q1.95 45.70 1.17 44.53Q6.84 44.53 12.50 43.55Q18.16 42.58 20.31 41.60Q16.21 39.26 12.30 35.94Q14.26 34.77 15.04 33.59L13.87 33.59M34.38 18.95L34.38 15.82L12.30 15.82L12.30 18.95L34.38 18.95M34.38 24.80L34.38 21.88L12.30 21.88L12.30 24.80L34.38 24.80M15.43 33.59Q19.14 37.30 24.02 39.84Q27.73 37.70 30.86 33.59L15.43 33.59ZM57.62 6.84Q56.45 8.79 55.66 10.55L61.33 10.55Q61.33 5.66 61.13 2.93L65.63 2.93Q65.43 5.47 65.43 10.55L68.36 10.55Q72.27 10.55 75.39 10.35L75.39 13.87Q72.66 13.67 68.55 13.67L65.43 13.67L65.43 19.34L70.31 19.34Q73.24 19.34 76.56 19.14L76.56 22.46L65.43 22.46L65.43 27.73L75.98 27.73Q75.78 30.08 75.68 34.18Q75.59 38.28 75.49 39.75Q75.39 41.21 73.83 41.89Q72.27 42.58 69.34 43.16Q68.95 41.02 67.97 38.67Q70.51 38.67 71.09 38.38Q71.68 38.09 71.68 35.35L71.68 30.86L65.43 30.86L65.43 41.60Q65.43 44.92 65.63 47.27L61.13 47.27Q61.33 43.55 61.33 41.60L61.33 30.86L55.27 30.86L55.27 43.16L51.17 43.16Q51.37 40.63 51.37 37.89L51.37 33.59Q51.37 29.88 51.17 27.73L61.33 27.73L61.33 22.46L55.08 22.46Q51.56 22.46 49.02 22.66L49.02 19.14Q51.56 19.34 55.08 19.34L61.33 19.34L61.33 13.67L54.49 13.67Q53.52 16.02 52.54 17.58Q50.78 16.41 49.02 15.63Q50.39 13.67 51.37 11.13Q52.34 8.59 53.13 5.47Q55.08 6.25 57.62 6.84M93.16 3.32Q92.97 5.27 92.97 8.98L92.97 42.77Q92.97 45.51 90.92 46.19Q88.87 46.88 84.96 47.46Q84.38 44.92 83.40 42.97Q86.72 42.97 87.89 42.77Q89.06 42.58 89.06 40.23L89.06 8.98Q89.06 5.66 88.87 3.32L93.16 3.32M83.79 9.18Q83.59 11.91 83.59 14.06L83.59 30.27Q83.59 33.01 83.79 36.91L79.49 36.91Q79.88 33.59 79.88 30.27L79.88 14.06Q79.88 12.11 79.49 9.18L83.79 9.18Z",
12
+ fill: "currentColor"
13
+ }, null, -1)]]);
14
+ }
15
+ var s = /*#__PURE__*/ e(i, [["render", o]]);
16
+ //#endregion
17
+ export { s as default };
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import { TdTextProps as _TdTextProps } from 'tdesign-vue-next';
2
+ export type TypographyTextProps = _TdTextProps;
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../../../chunks/typography-text-Bq9jEbxG.mjs";
2
+ export { e as default };
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import('vue').DefineComponent<import('tdesign-vue-next').TdTextProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('tdesign-vue-next').TdTextProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
package/package.json CHANGED
@@ -108,7 +108,7 @@
108
108
  "> 1%",
109
109
  "not dead"
110
110
  ],
111
- "version": "2.0.48",
111
+ "version": "2.0.49",
112
112
  "scripts": {
113
113
  "dev": "vite --config play/vite.config.ts"
114
114
  }
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../../chunks/Index-CZnP6jHo.mjs";
1
+ import { t as e } from "../../../../chunks/Index-4ZZV0mpO.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { TdTextProps as _TdTextProps } from 'tdesign-vue-next';
2
- export type TypographyTextProps = _TdTextProps;
1
+ import { TypographyTextProps as _TypographyTextProps } from '../../../../components/typography-text';
2
+ export type TypographyTextProps = _TypographyTextProps;
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../../chunks/Index-CT0eb17V.mjs";
1
+ import { t as e } from "../../../../chunks/Index-yibfwUn-.mjs";
2
2
  export { e as default };
@@ -1,7 +1,7 @@
1
1
  import { TypographyTextLinkProps } from './index.ts';
2
2
  declare const __VLS_export: import('vue').DefineComponent<TypographyTextLinkProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TypographyTextLinkProps> & Readonly<{}>, {
3
3
  link: import('../../../../components/link').LinkProps;
4
- typographyText: Omit<import('tdesign-vue-next').TdTextProps, "content" | "default">;
4
+ typographyText: Omit<import('../../../../components/typography-text').TypographyTextProps, "content" | "default">;
5
5
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
6
6
  declare const _default: typeof __VLS_export;
7
7
  export default _default;
@@ -1,6 +1,6 @@
1
- import { TdTextProps as _TdTextProps } from 'tdesign-vue-next';
2
1
  import { LinkProps as _LinkProps } from '../../../../components/link';
2
+ import { TypographyTextProps as _TypographyTextProps } from '../../../../components/typography-text';
3
3
  export interface TypographyTextLinkProps {
4
4
  link?: _LinkProps;
5
- typographyText?: Omit<_TdTextProps, 'content' | 'default'>;
5
+ typographyText?: Omit<_TypographyTextProps, 'content' | 'default'>;
6
6
  }
@@ -17,8 +17,8 @@ import { t as h } from "../../../chunks/Index-BAwtI6wg.mjs";
17
17
  import { t as g } from "../../../chunks/Index-CQSAs1h6.mjs";
18
18
  import { t as _ } from "../../../chunks/Index-BOv4n_q9.mjs";
19
19
  import { t as v } from "../../../chunks/Index-DuOAXN6w.mjs";
20
- import { t as y } from "../../../chunks/Index-CZnP6jHo.mjs";
21
- import { t as b } from "../../../chunks/Index-CT0eb17V.mjs";
20
+ import { t as y } from "../../../chunks/Index-4ZZV0mpO.mjs";
21
+ import { t as b } from "../../../chunks/Index-yibfwUn-.mjs";
22
22
  import { t as x } from "../../../chunks/Wrapper-Boiyneqd.mjs";
23
23
  //#region ../../packages/dlzn-ui/plugins/tableRenders/cell/index.ts
24
24
  var S = /* #__PURE__ */ Object.assign({
@@ -42,6 +42,7 @@ publicHoistPattern:
42
42
  - eslint
43
43
  - prettier
44
44
  - prettier-plugin-tailwindcss # prettier.config 里 plugins 是字符串,从项目根解析
45
+ - '@prettier/plugin-xml' # 用于格式化 XML svg 文件
45
46
  - stylelint
46
47
  - vite
47
48
  # vite css.transformer: lightningcss 会从项目根解析
@@ -1 +0,0 @@
1
- .t-typography[data-v-0ecdde6f]>p{white-space:nowrap!important}
@@ -1,33 +0,0 @@
1
- import { n as e, t } from "./link-nbeAJ6Mt.mjs";
2
- import "../components/link/index.mjs";
3
- import { createBlock as n, createTextVNode as r, createVNode as i, defineComponent as a, guardReactiveProps as o, normalizeProps as s, openBlock as c, toDisplayString as l, unref as u, useAttrs as d, withCtx as f } from "vue";
4
- import { Text as p } from "tdesign-vue-next";
5
- import { get as m } from "lodash-es";
6
- //#endregion
7
- //#region ../../packages/dlzn-ui/plugins/tableRenders/cell/TypographyTextLink/Index.vue
8
- var h = /* @__PURE__ */ a({
9
- inheritAttrs: !1,
10
- __name: "Index",
11
- props: {
12
- link: { default: () => ({}) },
13
- typographyText: { default: () => ({}) }
14
- },
15
- setup(a) {
16
- let h = d();
17
- return (d, g) => (c(), n(u(p), s(o({
18
- ...a.typographyText,
19
- copyable: a.typographyText.copyable === !0 || a.typographyText.copyable === void 0 ? { text: u(m)(u(h).row, u(h).col.colKey) } : a.typographyText.copyable
20
- })), {
21
- default: f(() => [i(u(t), s(o({
22
- ...u(e),
23
- ...a.link
24
- })), {
25
- default: f(() => [r(l(u(m)(u(h).row, u(h).col.colKey)), 1)]),
26
- _: 1
27
- }, 16)]),
28
- _: 1
29
- }, 16));
30
- }
31
- });
32
- //#endregion
33
- export { h as t };
@@ -1,71 +0,0 @@
1
- import "./utils-ag05P503.mjs";
2
- import { stringDisplay as e } from "../utils/string.mjs";
3
- import { t } from "./plugin-vue_export-helper-B3ysoDQm.mjs";
4
- import { t as n } from "./Index-LNJ_79uk.mjs";
5
- import { t as r } from "./Index-CU4eFnsQ.mjs";
6
- import { createBlock as i, createElementBlock as a, createElementVNode as o, createVNode as s, defineComponent as c, guardReactiveProps as l, h as u, mergeProps as d, normalizeProps as f, openBlock as p, ref as m, resolveDynamicComponent as h, toDisplayString as g, unref as _, useTemplateRef as v, withCtx as y } from "vue";
7
- import { Text as b } from "tdesign-vue-next";
8
- import { useResizeObserver as x, useThrottleFn as S } from "@vueuse/core";
9
- import { defaultsDeep as C } from "lodash-es";
10
- import '../assets/IndexItem-CfYDJ95Q.css';//#region ../../packages/dlzn-ui/components/overview/src/IndexItem.vue?vue&type=script&setup=true&lang.ts
11
- var w = { class: "shrink-0 text-(--td-text-color-placeholder)" }, T = /*#__PURE__*/ t(/* @__PURE__ */ c({
12
- __name: "IndexItem",
13
- props: { item: {} },
14
- setup(t) {
15
- let c = /* #__PURE__ */ Object.assign({
16
- "./DicLabel/Index.vue": n,
17
- "./OptionLabel/Index.vue": r
18
- });
19
- function T(t) {
20
- return E(t) ? () => u(c[`./${t.component}/Index.vue`], t) : () => u("span", e(t));
21
- }
22
- function E(e) {
23
- return typeof e == "object" && !!e && "component" in e;
24
- }
25
- let D = m(!0), O = v("textRef"), k = S(() => {
26
- if (O.value === null) return;
27
- let e = O.value.$el.querySelector(":scope > p");
28
- e !== null && (D.value = e.scrollWidth > e.clientWidth);
29
- }, 500, !0);
30
- x(O, k);
31
- let A = m("");
32
- function j() {
33
- let e = O.value?.$el;
34
- if (!e) return;
35
- let t = e.querySelectorAll(".t-tag");
36
- if (t.length > 0) {
37
- A.value = [...t].map((e) => e.textContent.trim() ?? "").filter(Boolean).join(",");
38
- return;
39
- }
40
- A.value = O.value?.$el.textContent.trim() ?? "";
41
- }
42
- function M() {
43
- k(), j();
44
- }
45
- function N() {
46
- k(), j();
47
- }
48
- return (e, n) => (p(), a("div", f(l(d({ class: "flex items-center" }, {
49
- class: t.item.class,
50
- style: t.item.style
51
- }))), [o("span", w, g(t.item.label) + ":", 1), s(_(b), d({
52
- ref_key: "textRef",
53
- ref: O,
54
- class: "my-0! flex-1 overflow-hidden"
55
- }, _(C)({
56
- ...t.item.textProps ?? {},
57
- copyable: t.item.textProps?.copyable === !0 ? { text: A.value } : t.item.textProps?.copyable
58
- }, { ellipsis: !D.value || { tooltipProps: {
59
- content: T(t.item.content),
60
- theme: "light"
61
- } } }), {
62
- onVnodeMounted: M,
63
- onVnodeUpdated: N
64
- }), {
65
- default: y(() => [(p(), i(h(T(t.item.content))))]),
66
- _: 1
67
- }, 16)], 16));
68
- }
69
- }), [["__scopeId", "data-v-0ecdde6f"]]);
70
- //#endregion
71
- export { T as t };