@vtable-guild/vtable-guild 2.9.0-alpha.8 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/css/index.css +296 -9
  2. package/css/presets/antdv.css +3 -0
  3. package/css/presets/element-plus.css +3 -0
  4. package/css/style.css +544 -43
  5. package/css/tailwind3-utilities.css +189 -32
  6. package/css/tailwind3.css +355 -11
  7. package/css/tailwind4.css +355 -11
  8. package/css/transitions.css +53 -2
  9. package/dist/core/src/utils/types.d.ts +3 -0
  10. package/dist/core/src/utils/types.d.ts.map +1 -1
  11. package/dist/css/index.css +296 -9
  12. package/dist/css/presets/antdv.css +3 -0
  13. package/dist/css/presets/element-plus.css +3 -0
  14. package/dist/css/style.css +544 -43
  15. package/dist/css/tailwind3-utilities.css +189 -32
  16. package/dist/css/tailwind3.css +355 -11
  17. package/dist/css/tailwind4.css +355 -11
  18. package/dist/css/transitions.css +53 -2
  19. package/dist/icons/src/EditOutlinedIcon.d.ts +3 -0
  20. package/dist/icons/src/EditOutlinedIcon.d.ts.map +1 -0
  21. package/dist/icons/src/EditOutlinedIcon.mjs +9 -0
  22. package/dist/icons/src/ElFilterIcon.mjs +9 -0
  23. package/dist/icons/src/index.d.ts +1 -0
  24. package/dist/icons/src/index.d.ts.map +1 -1
  25. package/dist/index.full.mjs +9349 -7117
  26. package/dist/index.mjs +112 -106
  27. package/dist/table/src/components/Table.d.ts +1 -1
  28. package/dist/table/src/components/TableCell.d.ts.map +1 -1
  29. package/dist/table/src/components/TableCell.mjs +118 -147
  30. package/dist/table/src/components/TableEditFrame.d.ts +58 -0
  31. package/dist/table/src/components/TableEditFrame.d.ts.map +1 -0
  32. package/dist/table/src/components/TableEditFrame.mjs +127 -0
  33. package/dist/table/src/components/TableEditLayout.test.d.ts +2 -0
  34. package/dist/table/src/components/TableEditLayout.test.d.ts.map +1 -0
  35. package/dist/table/src/components/TableEditableCell.d.ts +46 -9
  36. package/dist/table/src/components/TableEditableCell.d.ts.map +1 -1
  37. package/dist/table/src/components/TableEditableCell.mjs +99 -22
  38. package/dist/table/src/components/TableLightFilter.d.ts +76 -0
  39. package/dist/table/src/components/TableLightFilter.d.ts.map +1 -0
  40. package/dist/table/src/components/TableLightFilter.mjs +320 -0
  41. package/dist/table/src/components/TableLightFilter.test.d.ts +2 -0
  42. package/dist/table/src/components/TableLightFilter.test.d.ts.map +1 -0
  43. package/dist/table/src/components/TableQuery.d.ts +107 -46
  44. package/dist/table/src/components/TableQuery.d.ts.map +1 -1
  45. package/dist/table/src/components/TableQuery.mjs +481 -184
  46. package/dist/table/src/components/TableQueryNative.test.d.ts +2 -0
  47. package/dist/table/src/components/TableQueryNative.test.d.ts.map +1 -0
  48. package/dist/table/src/components/TableSelectionAlert.d.ts +1 -1
  49. package/dist/table/src/components/TableSelectionAlert.d.ts.map +1 -1
  50. package/dist/table/src/components/TableSelectionAlert.mjs +109 -55
  51. package/dist/table/src/components/VTableEditCell.test.d.ts +2 -0
  52. package/dist/table/src/components/VTableEditCell.test.d.ts.map +1 -0
  53. package/dist/table/src/components/VTableEditCell.vue.d.ts +18 -3
  54. package/dist/table/src/components/VTableEditCell.vue.d.ts.map +1 -1
  55. package/dist/table/src/components/VTableEditCell.vue.mjs +172 -10
  56. package/dist/table/src/components/VTableEditShell.vue.d.ts +38 -0
  57. package/dist/table/src/components/VTableEditShell.vue.d.ts.map +1 -0
  58. package/dist/table/src/components/VTableEditShell.vue.mjs +37 -0
  59. package/dist/table/src/components/VTableEditShell.vue2.mjs +4 -0
  60. package/dist/table/src/components/VTableQuery.vue.d.ts +4 -3
  61. package/dist/table/src/components/VTableQuery.vue.d.ts.map +1 -1
  62. package/dist/table/src/components/VTableQuery.vue.mjs +53 -31
  63. package/dist/table/src/components/VirtualTableBody.mjs +24 -23
  64. package/dist/table/src/components/renderCellDisplay.d.ts +6 -0
  65. package/dist/table/src/components/renderCellDisplay.d.ts.map +1 -0
  66. package/dist/table/src/components/renderCellDisplay.mjs +37 -0
  67. package/dist/table/src/composables/useQueryCollapseMotion.d.ts +4 -0
  68. package/dist/table/src/composables/useQueryCollapseMotion.d.ts.map +1 -0
  69. package/dist/table/src/composables/useQueryCollapseMotion.mjs +48 -0
  70. package/dist/table/src/composables/useQueryCollapseMotion.test.d.ts +2 -0
  71. package/dist/table/src/composables/useQueryCollapseMotion.test.d.ts.map +1 -0
  72. package/dist/table/src/composables/useSelection.d.ts.map +1 -1
  73. package/dist/table/src/composables/useSelection.mjs +157 -148
  74. package/dist/table/src/composables/useTableEdit.d.ts +17 -0
  75. package/dist/table/src/composables/useTableEdit.d.ts.map +1 -1
  76. package/dist/table/src/composables/useTableEdit.mjs +326 -266
  77. package/dist/table/src/composables/useTableEditable.d.ts.map +1 -1
  78. package/dist/table/src/composables/useTableEditable.mjs +321 -89
  79. package/dist/table/src/controls.d.ts.map +1 -1
  80. package/dist/table/src/controls.mjs +198 -79
  81. package/dist/table/src/index.d.ts +2 -0
  82. package/dist/table/src/index.d.ts.map +1 -1
  83. package/dist/table/src/types/controls.d.ts +61 -3
  84. package/dist/table/src/types/controls.d.ts.map +1 -1
  85. package/dist/table/src/types/controls.mjs +4 -0
  86. package/dist/table/src/types/editable.d.ts +78 -4
  87. package/dist/table/src/types/editable.d.ts.map +1 -1
  88. package/dist/table/src/types/editable.typecheck.d.ts.map +1 -1
  89. package/dist/table/src/types/editing.d.ts +5 -2
  90. package/dist/table/src/types/editing.d.ts.map +1 -1
  91. package/dist/table/src/types/query-form.d.ts +76 -15
  92. package/dist/table/src/types/query-form.d.ts.map +1 -1
  93. package/dist/table/src/types/query-form.typecheck.d.ts +4 -0
  94. package/dist/table/src/types/query-form.typecheck.d.ts.map +1 -1
  95. package/dist/table/src/types/table.d.ts +1 -0
  96. package/dist/table/src/types/table.d.ts.map +1 -1
  97. package/dist/table/src/utils/cell.d.ts +18 -12
  98. package/dist/table/src/utils/cell.d.ts.map +1 -1
  99. package/dist/table/src/utils/cell.mjs +95 -94
  100. package/dist/table/src/utils/draftEqual.d.ts +2 -0
  101. package/dist/table/src/utils/draftEqual.d.ts.map +1 -0
  102. package/dist/table/src/utils/draftEqual.mjs +22 -0
  103. package/dist/table/src/utils/queryFields.mjs +11 -11
  104. package/dist/table/src/utils/queryFilterLayout.d.ts +29 -0
  105. package/dist/table/src/utils/queryFilterLayout.d.ts.map +1 -0
  106. package/dist/table/src/utils/queryFilterLayout.mjs +74 -0
  107. package/dist/table/src/utils/queryFilterLayout.test.d.ts +2 -0
  108. package/dist/table/src/utils/queryFilterLayout.test.d.ts.map +1 -0
  109. package/dist/table/src/utils/queryInlineLayout.d.ts +22 -0
  110. package/dist/table/src/utils/queryInlineLayout.d.ts.map +1 -0
  111. package/dist/table/src/utils/queryInlineLayout.mjs +92 -0
  112. package/dist/table/src/utils/queryInlineLayout.test.d.ts +2 -0
  113. package/dist/table/src/utils/queryInlineLayout.test.d.ts.map +1 -0
  114. package/dist/table/src/utils/snapshot.d.ts +2 -0
  115. package/dist/table/src/utils/snapshot.d.ts.map +1 -1
  116. package/dist/table/src/utils/snapshot.mjs +18 -13
  117. package/dist/theme/src/presets/antdv/table-locale.d.ts +6 -0
  118. package/dist/theme/src/presets/antdv/table-locale.d.ts.map +1 -1
  119. package/dist/theme/src/presets/antdv/table-locale.mjs +16 -2
  120. package/dist/theme/src/presets/antdv/table.d.ts +18 -8
  121. package/dist/theme/src/presets/antdv/table.d.ts.map +1 -1
  122. package/dist/theme/src/presets/antdv/table.mjs +56 -12
  123. package/dist/theme/src/presets/element-plus/table-locale.d.ts +6 -0
  124. package/dist/theme/src/presets/element-plus/table-locale.d.ts.map +1 -1
  125. package/dist/theme/src/presets/element-plus/table-locale.mjs +16 -2
  126. package/dist/theme/src/presets/element-plus/table.d.ts +18 -8
  127. package/dist/theme/src/presets/element-plus/table.d.ts.map +1 -1
  128. package/dist/theme/src/presets/element-plus/table.mjs +57 -10
  129. package/dist/theme/src/query.d.ts +34 -57
  130. package/dist/theme/src/query.d.ts.map +1 -1
  131. package/dist/theme/src/query.mjs +23 -24
  132. package/dist/theme/src/selection-alert.d.ts +8 -0
  133. package/dist/theme/src/selection-alert.d.ts.map +1 -1
  134. package/dist/theme/src/selection-alert.mjs +2 -0
  135. package/dist/vtable-guild/src/index.d.ts +1 -1
  136. package/dist/vtable-guild/src/index.d.ts.map +1 -1
  137. package/package.json +2 -1
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=TableQueryNative.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableQueryNative.test.d.ts","sourceRoot":"","sources":["../../../../../table/src/components/TableQueryNative.test.ts"],"names":[],"mappings":""}
@@ -18,7 +18,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
18
18
  locale: PropType<TableSelectionAlertProps["locale"]>;
19
19
  ui: PropType<TableSelectionAlertProps["ui"]>;
20
20
  class: StringConstructor;
21
- }>, () => import("vue/jsx-runtime").JSX.Element | null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
21
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
22
22
  'update:selectedRowKeys': (_keys: Key[]) => true;
23
23
  clear: (_selectedRowKeys: readonly Key[], _selectedRows: readonly Row[]) => true;
24
24
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
@@ -1 +1 @@
1
- {"version":3,"file":"TableSelectionAlert.d.ts","sourceRoot":"","sources":["../../../../../table/src/components/TableSelectionAlert.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqC,KAAK,QAAQ,EAAE,KAAK,SAAS,EAAE,MAAM,KAAK,CAAA;AAOtF,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAA;AAC1C,OAAO,KAAK,EACV,wBAAwB,EAExB,wBAAwB,EACzB,MAAM,0BAA0B,CAAA;AAEjC,KAAK,GAAG,GAAG,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,GAAG,EAAE,CAAC;;;kBACnC,QAAQ,CAAC,SAAS,GAAG,EAAE,CAAC;;;;;;;;YAK7B,QAAQ,CAAC,wBAAwB,CAAC,QAAQ,CAAC,CAAC;QAChD,QAAQ,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC;;;;;;;;;;;AAX1D,wBAgME"}
@@ -1,10 +1,11 @@
1
- import { defineComponent as y, inject as v, computed as n, createVNode as o } from "vue";
2
- import { useTheme as m } from "../../../core/src/composables/useTheme.mjs";
3
- import { VTABLE_GUILD_INJECTION_KEY as b } from "../../../core/src/plugin/index.mjs";
4
- import { resolveSelectionAlertThemePreset as f, selectionAlertZhCN as R } from "../../../theme/src/selection-alert.mjs";
5
- import { resolveBuiltInLocale as g } from "../../../theme/src/presets/index.mjs";
6
- const B = /* @__PURE__ */ y({
1
+ import { defineComponent as S, inject as L, computed as u, watch as x, createVNode as n, Transition as T, mergeProps as _ } from "vue";
2
+ import { useTheme as O } from "../../../core/src/composables/useTheme.mjs";
3
+ import { VTABLE_GUILD_INJECTION_KEY as P } from "../../../core/src/plugin/index.mjs";
4
+ import { resolveSelectionAlertThemePreset as j, selectionAlertZhCN as I } from "../../../theme/src/selection-alert.mjs";
5
+ import { resolveBuiltInLocale as N } from "../../../theme/src/presets/index.mjs";
6
+ const D = /* @__PURE__ */ S({
7
7
  name: "TableSelectionAlert",
8
+ inheritAttrs: !1,
8
9
  props: {
9
10
  selectedRowKeys: {
10
11
  type: Array,
@@ -23,64 +24,117 @@ const B = /* @__PURE__ */ y({
23
24
  class: String
24
25
  },
25
26
  emits: {
26
- "update:selectedRowKeys": (e) => !0,
27
- clear: (e, i) => !0
27
+ "update:selectedRowKeys": (l) => !0,
28
+ clear: (l, y) => !0
28
29
  },
29
30
  slots: Object,
30
- setup(e, {
31
- emit: i,
32
- slots: a
31
+ setup(l, {
32
+ emit: y,
33
+ slots: s,
34
+ attrs: w
33
35
  }) {
34
- const s = v(b, null), r = n(() => s?.themePreset ?? "antdv"), {
35
- slots: l
36
- } = m("selectionAlert", n(() => f(r.value)), e), d = n(() => ({
37
- ...R,
38
- ...g(r.value, s?.locale)?.selectionAlert,
39
- ...s?.locales[s.locale]?.selectionAlert,
40
- ...s?.localeOverrides.selectionAlert,
41
- ...e.locale
42
- })), u = n(() => e.disabled || e.loading);
43
- function w() {
44
- if (u.value || e.selectedRowKeys.length === 0) return;
45
- const t = [...e.selectedRowKeys], c = [...e.selectedRows ?? []];
46
- i("update:selectedRowKeys", []), i("clear", t, c);
36
+ const c = L(P, null), h = u(() => c?.themePreset ?? "antdv"), {
37
+ slots: i
38
+ } = O("selectionAlert", u(() => j(h.value)), l), f = u(() => ({
39
+ ...I,
40
+ ...N(h.value, c?.locale)?.selectionAlert,
41
+ ...c?.locales[c.locale]?.selectionAlert,
42
+ ...c?.localeOverrides.selectionAlert,
43
+ ...l.locale
44
+ })), g = u(() => l.disabled || l.loading), m = u(() => l.alwaysShow || l.selectedRowKeys.length > 0);
45
+ let o, r = !1, a, d;
46
+ x(m, (t) => {
47
+ t ? a = void 0 : d = void 0, t && r && o ? d = {
48
+ height: o.getBoundingClientRect().height,
49
+ opacity: getComputedStyle(o).opacity
50
+ } : !t && !r && o && (a = {
51
+ height: o.getBoundingClientRect().height,
52
+ opacity: getComputedStyle(o).opacity
53
+ });
54
+ }, {
55
+ flush: "sync"
56
+ });
57
+ function R(t) {
58
+ const e = t;
59
+ o = e, r = !1, e.inert = !1, e.style.height = `${d?.height ?? 0}px`, e.style.opacity = d?.opacity ?? "0", d = void 0;
60
+ }
61
+ function b(t) {
62
+ const e = t;
63
+ e.offsetHeight, e.style.height = `${e.scrollHeight}px`, e.style.opacity = "1";
64
+ }
65
+ function C(t) {
66
+ const e = t;
67
+ o = e, r = !0, e.style.height = `${a?.height ?? e.getBoundingClientRect().height}px`, e.style.opacity = a?.opacity ?? getComputedStyle(e).opacity, a = void 0, e.inert = !0;
68
+ }
69
+ function A(t) {
70
+ const e = t;
71
+ e.offsetHeight, e.style.height = "0px", e.style.opacity = "0";
72
+ }
73
+ function v(t) {
74
+ const e = t;
75
+ e.style.removeProperty("height"), e.style.removeProperty("opacity"), e.inert = !1, o === e && (o = void 0, r = !1);
76
+ }
77
+ function B(t) {
78
+ const e = t, E = a?.height ?? e.getBoundingClientRect().height, K = a?.opacity ?? getComputedStyle(e).opacity;
79
+ e.style.height = `${E}px`, e.style.opacity = K;
80
+ }
81
+ function p() {
82
+ if (g.value || l.selectedRowKeys.length === 0) return;
83
+ const t = [...l.selectedRowKeys], e = [...l.selectedRows ?? []];
84
+ y("update:selectedRowKeys", []), y("clear", t, e);
47
85
  }
48
86
  return () => {
49
- const t = e.selectedRowKeys.length;
50
- if (!t && !e.alwaysShow) return null;
51
- const c = {
52
- selectedRowKeys: [...e.selectedRowKeys],
53
- selectedRows: [...e.selectedRows ?? []],
87
+ const t = l.selectedRowKeys.length, e = {
88
+ selectedRowKeys: [...l.selectedRowKeys],
89
+ selectedRows: [...l.selectedRows ?? []],
54
90
  count: t,
55
- disabled: u.value,
56
- loading: e.loading,
57
- clear: w
91
+ disabled: g.value,
92
+ loading: l.loading,
93
+ clear: p
58
94
  };
59
- return o("div", {
60
- role: "group",
61
- "aria-label": d.value.label,
62
- "aria-busy": e.loading,
63
- "data-vtg-preset": r.value,
64
- class: l.root()
65
- }, [o("div", {
66
- role: "status",
67
- "aria-live": "polite",
68
- class: l.info()
69
- }, [a.info ? a.info(c) : o("span", {
70
- class: l.text()
71
- }, [d.value.selected.replace("{count}", String(t))])]), (e.showClear || a.actions) && o("div", {
72
- class: l.option()
73
- }, [e.showClear && o("button", {
74
- type: "button",
75
- class: l.clear(),
76
- disabled: u.value || !t,
77
- onClick: w
78
- }, [d.value.clear]), a.actions && o("div", {
79
- class: l.actions()
80
- }, [a.actions(c)])])]);
95
+ return n(T, {
96
+ name: "vtg-selection-alert",
97
+ onBeforeEnter: R,
98
+ onEnter: b,
99
+ onAfterEnter: v,
100
+ onEnterCancelled: B,
101
+ onBeforeLeave: C,
102
+ onLeave: A,
103
+ onAfterLeave: v,
104
+ onLeaveCancelled: v
105
+ }, {
106
+ default: () => [m.value && n("div", _(w, {
107
+ role: "group",
108
+ "aria-label": f.value.label,
109
+ "aria-busy": l.loading,
110
+ "data-vtg-preset": h.value,
111
+ "data-selection-alert-motion": "",
112
+ class: i.wrapper()
113
+ }), [n("div", {
114
+ "data-selection-alert-content": "",
115
+ class: i.content()
116
+ }, [n("div", {
117
+ class: i.root()
118
+ }, [n("div", {
119
+ role: "status",
120
+ "aria-live": "polite",
121
+ class: i.info()
122
+ }, [s.info ? s.info(e) : n("span", {
123
+ class: i.text()
124
+ }, [f.value.selected.replace("{count}", String(t))])]), (l.showClear || s.actions) && n("div", {
125
+ class: i.option()
126
+ }, [l.showClear && n("button", {
127
+ type: "button",
128
+ class: i.clear(),
129
+ disabled: g.value || !t,
130
+ onClick: p
131
+ }, [f.value.clear]), s.actions && n("div", {
132
+ class: i.actions()
133
+ }, [s.actions(e)])])])])])]
134
+ });
81
135
  };
82
136
  }
83
137
  });
84
138
  export {
85
- B as default
139
+ D as default
86
140
  };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=VTableEditCell.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VTableEditCell.test.d.ts","sourceRoot":"","sources":["../../../../../table/src/components/VTableEditCell.test.ts"],"names":[],"mappings":""}
@@ -1,13 +1,28 @@
1
- import { UseTableEditableReturn } from '../types/editable';
1
+ import { VNodeChild } from 'vue';
2
+ import { TableEditCellUiSlots, TableEditErrorPlacement, TableEditLayout, UseTableEditableReturn } from '../types/editable';
2
3
  import { TableBodyCellSlotProps } from '../types/table';
4
+ export type VTableEditCellEdit<TRecord extends object> = Pick<UseTableEditableReturn<TRecord>, 'renderEditor'> & Partial<Pick<UseTableEditableReturn<TRecord>, 'trigger' | 'layout' | 'errorPlacement' | 'getCell' | 'canEditCell' | 'startCell' | 'ui'>>;
3
5
  declare const _default: <TRecord extends object = Record<string, unknown>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
6
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & {
5
- edit: Pick<UseTableEditableReturn<TRecord>, "renderEditor">;
7
+ edit: VTableEditCellEdit<TRecord>;
6
8
  cell: TableBodyCellSlotProps<TRecord>;
9
+ emptyText?: string;
10
+ editIcon?: boolean;
11
+ /** Overrides the layout configured on useTableEditable for this cell. */
12
+ layout?: TableEditLayout;
13
+ /** Overrides the error placement configured on useTableEditable for this cell. */
14
+ errorPlacement?: TableEditErrorPlacement;
15
+ ui?: Partial<Record<TableEditCellUiSlots, string>>;
7
16
  } & Partial<{}>> & import('vue').PublicProps;
8
17
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
9
18
  attrs: any;
10
- slots: {};
19
+ slots: Readonly<{
20
+ default?: (props: TableBodyCellSlotProps<TRecord>) => VNodeChild;
21
+ icon?: (props: TableBodyCellSlotProps<TRecord>) => VNodeChild;
22
+ }> & {
23
+ default?: (props: TableBodyCellSlotProps<TRecord>) => VNodeChild;
24
+ icon?: (props: TableBodyCellSlotProps<TRecord>) => VNodeChild;
25
+ };
11
26
  emit: {};
12
27
  }>) => import('vue').VNode & {
13
28
  __ctx?: Awaited<typeof __VLS_setup>;
@@ -1 +1 @@
1
- {"version":3,"file":"VTableEditCell.vue.d.ts","sourceRoot":"","sources":["../../../../../table/src/components/VTableEditCell.vue"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAA;AAC/D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAA;yBAE3C,OA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AAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AArYzE,wBAqY4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -1,21 +1,183 @@
1
- import { defineComponent as n, createBlock as r, openBlock as c } from "vue";
2
- const i = /* @__PURE__ */ n({
1
+ import { defineComponent as q, useSlots as Q, inject as L, computed as o, shallowRef as x, ref as Z, watch as ee, nextTick as le, createBlock as I, createElementBlock as g, createCommentVNode as B, openBlock as s, normalizeClass as d, createVNode as T, unref as u, withModifiers as te, withCtx as O, createTextVNode as oe, toDisplayString as ne, createElementVNode as ie, renderSlot as R, normalizeProps as $, guardReactiveProps as N, h as y } from "vue";
2
+ import { useTheme as ae } from "../../../core/src/composables/useTheme.mjs";
3
+ import re from "../../../core/src/components/Tooltip.mjs";
4
+ import se from "../../../core/src/components/Button.mjs";
5
+ import { VTABLE_GUILD_INJECTION_KEY as ce } from "../../../core/src/plugin/index.mjs";
6
+ import z from "../../../icons/src/EditOutlinedIcon.mjs";
7
+ import { resolveTableThemePreset as ue } from "../../../theme/src/presets/index.mjs";
8
+ import { TABLE_CONTEXT_KEY as de } from "../context.mjs";
9
+ import { getEllipsisConfig as fe, resolveCellDisplay as ve, resolveCellLabel as A } from "../utils/cell.mjs";
10
+ import { renderCellDisplay as M } from "./renderCellDisplay.mjs";
11
+ const me = ["title", "aria-label"], Be = /* @__PURE__ */ q({
3
12
  name: "VTableEditCell",
4
13
  inheritAttrs: !1,
5
14
  __name: "VTableEditCell",
6
15
  props: {
7
16
  edit: {},
8
- cell: {}
17
+ cell: {},
18
+ emptyText: { default: void 0 },
19
+ editIcon: { type: Boolean, default: !0 },
20
+ layout: { default: void 0 },
21
+ errorPlacement: { default: void 0 },
22
+ ui: { default: void 0 }
9
23
  },
10
- setup(t) {
11
- const e = t, l = () => e.edit.renderEditor({
12
- ...e.cell,
13
- value: e.cell.text,
14
- renderIndex: e.cell.index
24
+ setup(r) {
25
+ const l = r, f = Q(), W = L(ce, null), n = L(de, {}), S = o(
26
+ () => l.ui || l.edit.ui ? { ...l.edit.ui ?? {}, ...l.ui ?? {} } : void 0
27
+ ), { slots: a } = ae(
28
+ "table",
29
+ o(() => ue(W?.themePreset ?? "antdv")),
30
+ {
31
+ get ui() {
32
+ return S.value;
33
+ }
34
+ }
35
+ ), v = o(() => l.edit.trigger === "click"), c = o(() => v.value ? l.edit.getCell?.(l.cell) : void 0), K = o(
36
+ () => v.value && !c.value && !!l.edit.canEditCell?.(l.cell)
37
+ ), V = x(null), C = x(null), E = x(null), m = Z(!1);
38
+ ee(
39
+ () => !!c.value,
40
+ (e, t) => {
41
+ if (!t || e) return;
42
+ const i = typeof document < "u" ? document.activeElement : null;
43
+ i && V.value?.contains(i) && le(() => {
44
+ C.value?.isConnected && C.value.focus({ preventScroll: !0 });
45
+ });
46
+ },
47
+ { flush: "sync" }
48
+ );
49
+ function P(e) {
50
+ const t = l.emptyText ?? n.columnEmptyText?.value, i = ve(e, {
51
+ renderers: n.renderers?.value,
52
+ locale: n.localeName?.value,
53
+ columnEmptyText: t
54
+ });
55
+ return i.content === "" && t && A(e).content === "" ? { ...i, content: t } : i;
56
+ }
57
+ const w = o(() => P(l.cell)), U = o(
58
+ () => n.vtgClass ? n.vtgClass("min-w-0 flex-1") : void 0
59
+ ), D = () => M(w.value, n.subThemeSlots ?? a);
60
+ function Y(e) {
61
+ return M(P(e), n.subThemeSlots ?? a);
62
+ }
63
+ function k() {
64
+ return f.default ? A(l.cell).tooltipText : w.value.tooltipText;
65
+ }
66
+ const h = o(() => fe(l.cell.column)), b = o(() => [
67
+ a.editTriggerValue(),
68
+ h.value.enabled && a.bodyCellEllipsis()
69
+ ]), p = o(() => {
70
+ const e = l.cell.column.title;
71
+ return typeof e == "string" || typeof e == "number" ? String(e) : "";
72
+ }), _ = o(() => {
73
+ const e = n.locale?.value.cell?.clickToEdit ?? "点击编辑";
74
+ return p.value ? `${e}${p.value}` : e;
75
+ }), j = o(() => {
76
+ const e = n.locale?.value.cell?.edit ?? "编辑", t = p.value ? `${e}${p.value}` : e, i = k();
77
+ return i ? `${t},${i}` : t;
15
78
  });
16
- return (o, d) => (c(), r(l));
79
+ function F() {
80
+ const e = E.value, t = k();
81
+ m.value = !!(e && t && (e.scrollWidth > e.clientWidth || e.scrollHeight > e.clientHeight));
82
+ }
83
+ function G() {
84
+ m.value = !1;
85
+ }
86
+ function J() {
87
+ m.value = !1, l.edit.startCell?.(l.cell.record, l.cell.column);
88
+ }
89
+ function X(e) {
90
+ return y("span", { class: a.editTrigger() }, [
91
+ y("span", { class: b.value }, [f.default?.(e) ?? Y(e)]),
92
+ l.editIcon ? y("span", { class: a.editTriggerIcon() }, [
93
+ f.icon?.(e) ?? y(z)
94
+ ]) : null
95
+ ]);
96
+ }
97
+ const H = () => l.edit.renderEditor(
98
+ {
99
+ ...l.cell,
100
+ value: l.cell.text,
101
+ renderIndex: l.cell.index
102
+ },
103
+ S.value,
104
+ {
105
+ layout: l.layout,
106
+ errorPlacement: l.errorPlacement,
107
+ sizer: v.value ? X : f.default
108
+ }
109
+ );
110
+ return (e, t) => v.value ? c.value ? (s(), g("div", {
111
+ key: 1,
112
+ ref_key: "editorHostRef",
113
+ ref: V,
114
+ class: d(U.value)
115
+ }, [
116
+ T(H),
117
+ c.value.cellEdit && c.value.disabled && r.edit.canEditCell?.(r.cell) === !1 ? (s(), I(u(se), {
118
+ key: 0,
119
+ type: "link",
120
+ size: "sm",
121
+ onClick: t[0] || (t[0] = te((i) => c.value.cellEdit.cancel(), ["stop"]))
122
+ }, {
123
+ default: O(() => [
124
+ oe(ne(u(n).locale?.value.cell?.cancelEdit ?? "取消编辑"), 1)
125
+ ]),
126
+ _: 1
127
+ })) : B("", !0)
128
+ ], 2)) : K.value ? (s(), g("button", {
129
+ key: 2,
130
+ ref_key: "triggerRef",
131
+ ref: C,
132
+ type: "button",
133
+ class: d(u(a).editTrigger()),
134
+ title: _.value,
135
+ "aria-label": j.value,
136
+ onClick: J
137
+ }, [
138
+ h.value.enabled && h.value.showTitle ? (s(), I(u(re), {
139
+ key: 0,
140
+ block: "",
141
+ title: k(),
142
+ placement: "top",
143
+ open: m.value
144
+ }, {
145
+ default: O(() => [
146
+ ie("span", {
147
+ ref_key: "valueRef",
148
+ ref: E,
149
+ class: d(b.value),
150
+ onMouseenter: F,
151
+ onMouseleave: G
152
+ }, [
153
+ R(e.$slots, "default", $(N(r.cell)), () => [
154
+ T(D)
155
+ ])
156
+ ], 34)
157
+ ]),
158
+ _: 3
159
+ }, 8, ["title", "open"])) : (s(), g("span", {
160
+ key: 1,
161
+ ref_key: "valueRef",
162
+ ref: E,
163
+ class: d(b.value)
164
+ }, [
165
+ R(e.$slots, "default", $(N(r.cell)), () => [
166
+ T(D)
167
+ ])
168
+ ], 2)),
169
+ r.editIcon ? (s(), g("span", {
170
+ key: 2,
171
+ class: d(u(a).editTriggerIcon()),
172
+ "aria-hidden": "true"
173
+ }, [
174
+ R(e.$slots, "icon", $(N(r.cell)), () => [
175
+ T(u(z))
176
+ ])
177
+ ], 2)) : B("", !0)
178
+ ], 10, me)) : B("", !0) : (s(), I(H, { key: 0 }));
17
179
  }
18
180
  });
19
181
  export {
20
- i as default
182
+ Be as default
21
183
  };
@@ -0,0 +1,38 @@
1
+ import { VNodeChild } from 'vue';
2
+ import { TableEditCellUiSlots, TableEditErrorPlacement, TableEditLayout } from '../types/editable';
3
+ import { TableBodyCellSlotProps } from '../types/table';
4
+ declare const _default: <TRecord extends object = Record<string, unknown>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
5
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & {
6
+ /** The bodyCell slot context of the cell being edited. */
7
+ cell: TableBodyCellSlotProps<TRecord>;
8
+ /** The record as it was before editing, e.g. edit.getOriginal(key). Defaults to cell.record. */
9
+ original?: TRecord;
10
+ layout?: TableEditLayout;
11
+ /** Stretch the control to the height of the cell; for a multi-line control such as a textarea. */
12
+ fill?: boolean;
13
+ error?: string;
14
+ errorPlacement?: TableEditErrorPlacement;
15
+ ui?: Partial<Record<TableEditCellUiSlots, string>>;
16
+ } & Partial<{}>> & import('vue').PublicProps;
17
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
18
+ attrs: any;
19
+ slots: Readonly<{
20
+ /** The editing control. */
21
+ default?: () => VNodeChild;
22
+ /** Content of the hidden layer; defaults to the column's display rendering. */
23
+ display?: (props: TableBodyCellSlotProps<TRecord>) => VNodeChild;
24
+ }> & {
25
+ /** The editing control. */
26
+ default?: () => VNodeChild;
27
+ /** Content of the hidden layer; defaults to the column's display rendering. */
28
+ display?: (props: TableBodyCellSlotProps<TRecord>) => VNodeChild;
29
+ };
30
+ emit: {};
31
+ }>) => import('vue').VNode & {
32
+ __ctx?: Awaited<typeof __VLS_setup>;
33
+ };
34
+ export default _default;
35
+ type __VLS_PrettifyLocal<T> = {
36
+ [K in keyof T]: T[K];
37
+ } & {};
38
+ //# sourceMappingURL=VTableEditShell.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VTableEditShell.vue.d.ts","sourceRoot":"","sources":["../../../../../table/src/components/VTableEditShell.vue"],"names":[],"mappings":"AAoEA,OAAO,EAAK,KAAK,UAAU,EAAE,MAAM,KAAK,CAAA;AACxC,OAAO,KAAK,EACV,oBAAoB,EACpB,uBAAuB,EACvB,eAAe,EAChB,MAAM,mBAAmB,CAAA;AAC1B,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAA;yBAG3C,OAAO,SA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openBlock as n, h as u } from "vue";
2
+ import s from "./TableEditFrame.mjs";
3
+ const p = /* @__PURE__ */ o({
4
+ name: "VTableEditShell",
5
+ __name: "VTableEditShell",
6
+ props: {
7
+ cell: {},
8
+ original: { default: void 0 },
9
+ layout: { default: "stable" },
10
+ fill: { type: Boolean, default: !1 },
11
+ error: { default: void 0 },
12
+ errorPlacement: { default: "inline" },
13
+ ui: { default: void 0 }
14
+ },
15
+ setup(r) {
16
+ const e = r, l = a(), t = () => u(
17
+ s,
18
+ {
19
+ ui: e.ui,
20
+ layout: e.layout,
21
+ displayCell: e.cell,
22
+ original: e.original,
23
+ sizer: l.display,
24
+ // A hand-written editor may open on a row whose cells are all empty.
25
+ strut: !0,
26
+ fill: e.fill,
27
+ error: e.error,
28
+ errorPlacement: e.errorPlacement
29
+ },
30
+ { default: () => l.default?.() }
31
+ );
32
+ return (d, f) => (n(), i(t));
33
+ }
34
+ });
35
+ export {
36
+ p as default
37
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./VTableEditShell.vue.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -1,13 +1,14 @@
1
1
  import { TableQueryInstance, TableQueryProps, TableQuerySlots } from '../types/query-form';
2
- declare const _default: <TValues extends object = Record<string, unknown>, TParams extends object = TValues>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
2
+ declare const _default: <TValues extends object = Record<string, unknown>, TParams extends object = TValues, TRecord extends object = TValues>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
3
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
4
4
  readonly onReset?: ((success: boolean) => any) | undefined;
5
5
  readonly onSubmitted?: ((success: boolean) => any) | undefined;
6
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onReset" | "onSubmitted"> & TableQueryProps<TValues, TParams> & Partial<{}>> & import('vue').PublicProps;
6
+ readonly "onUpdate:collapsed"?: ((collapsed: boolean) => any) | undefined;
7
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onReset" | "onSubmitted" | "onUpdate:collapsed"> & TableQueryProps<TValues, TParams, TRecord> & Partial<{}>> & import('vue').PublicProps;
7
8
  expose(exposed: import('vue').ShallowUnwrapRef<TableQueryInstance>): void;
8
9
  attrs: any;
9
10
  slots: Readonly<TableQuerySlots<TValues>> & TableQuerySlots<TValues>;
10
- emit: ((evt: "reset", success: boolean) => void) & ((evt: "submitted", success: boolean) => void);
11
+ emit: ((evt: "reset", success: boolean) => void) & ((evt: "submitted", success: boolean) => void) & ((evt: "update:collapsed", collapsed: boolean) => void);
11
12
  }>) => import('vue').VNode & {
12
13
  __ctx?: Awaited<typeof __VLS_setup>;
13
14
  };
@@ -1 +1 @@
1
- {"version":3,"file":"VTableQuery.vue.d.ts","sourceRoot":"","sources":["../../../../../table/src/components/VTableQuery.vue"],"names":[],"mappings":"AA+CA,OAAO,KAAK,EAAE,kBAAkB,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;yBAE9E,OAAO,SAAS,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,SAAS,MAAM,GAAG,OAAO,EAClG,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,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