kui-vue 6.2.2 → 6.3.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 (132) hide show
  1. package/ai/kui-components.json +1011 -452
  2. package/dist/index.js +2 -2
  3. package/es/index.js +6207 -4904
  4. package/es/locale/de.js +6 -2
  5. package/es/locale/el.js +6 -2
  6. package/es/locale/en.js +6 -2
  7. package/es/locale/fr.js +6 -2
  8. package/es/locale/it.js +6 -2
  9. package/es/locale/ja.js +6 -2
  10. package/es/locale/ko.js +6 -2
  11. package/es/locale/ru.js +6 -2
  12. package/es/locale/th.js +6 -2
  13. package/es/locale/uk.js +6 -2
  14. package/es/locale/vi.js +6 -2
  15. package/es/locale/zh-CN.js +6 -2
  16. package/es/locale/zh-TW.js +6 -2
  17. package/lib/index.cjs +2 -2
  18. package/lib/locale/de.cjs +2 -2
  19. package/lib/locale/el.cjs +2 -2
  20. package/lib/locale/en.cjs +2 -2
  21. package/lib/locale/fr.cjs +2 -2
  22. package/lib/locale/it.cjs +2 -2
  23. package/lib/locale/ja.cjs +2 -2
  24. package/lib/locale/ko.cjs +2 -2
  25. package/lib/locale/ru.cjs +2 -2
  26. package/lib/locale/th.cjs +2 -2
  27. package/lib/locale/uk.cjs +2 -2
  28. package/lib/locale/vi.cjs +2 -2
  29. package/lib/locale/zh-CN.cjs +2 -2
  30. package/lib/locale/zh-TW.cjs +2 -2
  31. package/package.json +4 -3
  32. package/style/base.css +2 -2
  33. package/style/components.css +2 -2
  34. package/style/index.css +2 -2
  35. package/style/motion.css +1 -1
  36. package/style/theme.css +2 -2
  37. package/types/alert/index.d.ts +5 -5
  38. package/types/auto-complete/index.d.ts +52 -0
  39. package/types/badge/index.d.ts +7 -17
  40. package/types/button/button.d.ts +3 -4
  41. package/types/card/index.d.ts +5 -5
  42. package/types/cascader/index.d.ts +9 -0
  43. package/types/cascader/types.d.ts +5 -0
  44. package/types/check-card/check-card-group.d.ts +5 -9
  45. package/types/check-card/check-card.d.ts +5 -9
  46. package/types/check-card/context.d.ts +3 -3
  47. package/types/check-card/index.d.ts +1 -1
  48. package/types/check-card/types.d.ts +2 -3
  49. package/types/checkbox/checkbox-group.d.ts +5 -5
  50. package/types/checkbox/checkbox.d.ts +2 -2
  51. package/types/collapse/collapse.d.ts +5 -5
  52. package/types/color-picker/index.d.ts +27 -0
  53. package/types/components.d.ts +2 -2
  54. package/types/config/context.d.ts +102 -1
  55. package/types/const/types.d.ts +11 -1
  56. package/types/const/var.d.ts +6 -1
  57. package/types/date-picker/index.d.ts +18 -0
  58. package/types/drawer/index.d.ts +21 -8
  59. package/types/dropdown/dropdown-button.d.ts +23 -4
  60. package/types/dropdown/dropdown-context.d.ts +5 -0
  61. package/types/dropdown/dropdown.d.ts +16 -0
  62. package/types/dropdown/trigger.d.ts +3 -3
  63. package/types/feature-card/index.d.ts +5 -5
  64. package/types/feedback-panel/feedback-panel.d.ts +5 -5
  65. package/types/flame-wrap/engine.d.ts +18 -0
  66. package/types/form/context.d.ts +2 -0
  67. package/types/global.d.ts +256 -0
  68. package/types/image/image.d.ts +5 -5
  69. package/types/input/input-group.d.ts +2 -6
  70. package/types/input-number/index.d.ts +37 -7
  71. package/types/kanban/index.d.ts +5 -4
  72. package/types/list-panel/index.d.ts +5 -5
  73. package/types/locale/de.d.cts +4 -0
  74. package/types/locale/de.d.ts +4 -0
  75. package/types/locale/el.d.cts +4 -0
  76. package/types/locale/el.d.ts +4 -0
  77. package/types/locale/en.d.cts +4 -0
  78. package/types/locale/en.d.ts +4 -0
  79. package/types/locale/fr.d.cts +4 -0
  80. package/types/locale/fr.d.ts +4 -0
  81. package/types/locale/it.d.cts +4 -0
  82. package/types/locale/it.d.ts +4 -0
  83. package/types/locale/ja.d.cts +4 -0
  84. package/types/locale/ja.d.ts +4 -0
  85. package/types/locale/ko.d.cts +4 -0
  86. package/types/locale/ko.d.ts +4 -0
  87. package/types/locale/ru.d.cts +4 -0
  88. package/types/locale/ru.d.ts +4 -0
  89. package/types/locale/th.d.cts +4 -0
  90. package/types/locale/th.d.ts +4 -0
  91. package/types/locale/uk.d.cts +4 -0
  92. package/types/locale/uk.d.ts +4 -0
  93. package/types/locale/vi.d.cts +4 -0
  94. package/types/locale/vi.d.ts +4 -0
  95. package/types/locale/zh-CN.d.cts +4 -0
  96. package/types/locale/zh-CN.d.ts +4 -0
  97. package/types/locale/zh-TW.d.cts +4 -0
  98. package/types/locale/zh-TW.d.ts +4 -0
  99. package/types/mentions/index.d.ts +16 -0
  100. package/types/menu/menu-keyboard.d.ts +23 -0
  101. package/types/modal/index.d.ts +8 -2
  102. package/types/modal/modal.d.ts +27 -4
  103. package/types/modal/toast.d.ts +5 -5
  104. package/types/page/index.d.ts +5 -5
  105. package/types/popconfirm/index.d.ts +16 -0
  106. package/types/poptip/index.d.ts +16 -0
  107. package/types/popup/layers.d.ts +2 -0
  108. package/types/qrcode/index.d.ts +5 -5
  109. package/types/radio/radio-button.d.ts +4 -4
  110. package/types/radio/radio-group.d.ts +2 -2
  111. package/types/radio/radio.d.ts +5 -5
  112. package/types/ripple/engine.d.ts +18 -0
  113. package/types/select/select.d.ts +5 -0
  114. package/types/stat-card/stat-card.d.ts +24 -6
  115. package/types/stat-card/utils/countup.d.ts +3 -3
  116. package/types/stat-card/utils/stat-item-key.d.ts +11 -0
  117. package/types/table/index.d.ts +21 -5
  118. package/types/table/types.d.ts +17 -1
  119. package/types/table/utils.d.ts +76 -0
  120. package/types/tag/index.d.ts +5 -5
  121. package/types/tooltip/index.d.ts +16 -0
  122. package/types/transfer/index.d.ts +5 -4
  123. package/types/tree/index.d.ts +2 -2
  124. package/types/tree-select/index.d.ts +5 -0
  125. package/types/utils/color.d.ts +13 -0
  126. package/types/utils/overlay-order.d.ts +6 -0
  127. package/types/utils/overlay-stack.d.ts +13 -0
  128. package/types/utils/promise.d.ts +5 -0
  129. package/types/utils/vnode.d.ts +25 -0
  130. package/vetur/attributes.json +529 -225
  131. package/vetur/tags.json +76 -28
  132. package/vetur/web-types.json +668 -284
@@ -52,6 +52,10 @@ declare const _default: {
52
52
  emptyText: string;
53
53
  columnSettings: string;
54
54
  resetColumns: string;
55
+ expandRow: string;
56
+ collapseRow: string;
57
+ selectRow: string;
58
+ selectAllRows: string;
55
59
  };
56
60
  upload: {
57
61
  successful: string;
@@ -52,6 +52,10 @@ declare const _default: {
52
52
  emptyText: string;
53
53
  columnSettings: string;
54
54
  resetColumns: string;
55
+ expandRow: string;
56
+ collapseRow: string;
57
+ selectRow: string;
58
+ selectAllRows: string;
55
59
  };
56
60
  upload: {
57
61
  successful: string;
@@ -52,6 +52,10 @@ declare const _default: {
52
52
  emptyText: string;
53
53
  columnSettings: string;
54
54
  resetColumns: string;
55
+ expandRow: string;
56
+ collapseRow: string;
57
+ selectRow: string;
58
+ selectAllRows: string;
55
59
  };
56
60
  upload: {
57
61
  successful: string;
@@ -52,6 +52,10 @@ declare const _default: {
52
52
  emptyText: string;
53
53
  columnSettings: string;
54
54
  resetColumns: string;
55
+ expandRow: string;
56
+ collapseRow: string;
57
+ selectRow: string;
58
+ selectAllRows: string;
55
59
  };
56
60
  upload: {
57
61
  successful: string;
@@ -52,6 +52,10 @@ declare const _default: {
52
52
  emptyText: string;
53
53
  columnSettings: string;
54
54
  resetColumns: string;
55
+ expandRow: string;
56
+ collapseRow: string;
57
+ selectRow: string;
58
+ selectAllRows: string;
55
59
  };
56
60
  upload: {
57
61
  successful: string;
@@ -52,6 +52,10 @@ declare const _default: {
52
52
  emptyText: string;
53
53
  columnSettings: string;
54
54
  resetColumns: string;
55
+ expandRow: string;
56
+ collapseRow: string;
57
+ selectRow: string;
58
+ selectAllRows: string;
55
59
  };
56
60
  upload: {
57
61
  successful: string;
@@ -52,6 +52,10 @@ declare const _default: {
52
52
  emptyText: string;
53
53
  columnSettings: string;
54
54
  resetColumns: string;
55
+ expandRow: string;
56
+ collapseRow: string;
57
+ selectRow: string;
58
+ selectAllRows: string;
55
59
  };
56
60
  upload: {
57
61
  successful: string;
@@ -52,6 +52,10 @@ declare const _default: {
52
52
  emptyText: string;
53
53
  columnSettings: string;
54
54
  resetColumns: string;
55
+ expandRow: string;
56
+ collapseRow: string;
57
+ selectRow: string;
58
+ selectAllRows: string;
55
59
  };
56
60
  upload: {
57
61
  successful: string;
@@ -52,6 +52,10 @@ declare const _default: {
52
52
  emptyText: string;
53
53
  columnSettings: string;
54
54
  resetColumns: string;
55
+ expandRow: string;
56
+ collapseRow: string;
57
+ selectRow: string;
58
+ selectAllRows: string;
55
59
  };
56
60
  upload: {
57
61
  successful: string;
@@ -52,6 +52,10 @@ declare const _default: {
52
52
  emptyText: string;
53
53
  columnSettings: string;
54
54
  resetColumns: string;
55
+ expandRow: string;
56
+ collapseRow: string;
57
+ selectRow: string;
58
+ selectAllRows: string;
55
59
  };
56
60
  upload: {
57
61
  successful: string;
@@ -52,6 +52,10 @@ declare const _default: {
52
52
  emptyText: string;
53
53
  columnSettings: string;
54
54
  resetColumns: string;
55
+ expandRow: string;
56
+ collapseRow: string;
57
+ selectRow: string;
58
+ selectAllRows: string;
55
59
  };
56
60
  upload: {
57
61
  successful: string;
@@ -52,6 +52,10 @@ declare const _default: {
52
52
  emptyText: string;
53
53
  columnSettings: string;
54
54
  resetColumns: string;
55
+ expandRow: string;
56
+ collapseRow: string;
57
+ selectRow: string;
58
+ selectAllRows: string;
55
59
  };
56
60
  upload: {
57
61
  successful: string;
@@ -36,6 +36,11 @@ declare const propsDef: {
36
36
  type: PropType<DropPlacementsType>;
37
37
  default: string;
38
38
  };
39
+ /** 关闭后是否销毁面板内容。默认销毁(重开时重新挂载);设为 false 可保留面板内的表单状态,代价是每个打开过的实例留一份隐藏 DOM。 */
40
+ destroyOnClose: {
41
+ type: BooleanConstructor;
42
+ default: boolean;
43
+ };
39
44
  size: PropType<SizeType>;
40
45
  shape: PropType<ShapeType>;
41
46
  theme: {
@@ -77,6 +82,11 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
77
82
  type: PropType<DropPlacementsType>;
78
83
  default: string;
79
84
  };
85
+ /** 关闭后是否销毁面板内容。默认销毁(重开时重新挂载);设为 false 可保留面板内的表单状态,代价是每个打开过的实例留一份隐藏 DOM。 */
86
+ destroyOnClose: {
87
+ type: BooleanConstructor;
88
+ default: boolean;
89
+ };
80
90
  size: PropType<SizeType>;
81
91
  shape: PropType<ShapeType>;
82
92
  theme: {
@@ -122,6 +132,11 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
122
132
  type: PropType<DropPlacementsType>;
123
133
  default: string;
124
134
  };
135
+ /** 关闭后是否销毁面板内容。默认销毁(重开时重新挂载);设为 false 可保留面板内的表单状态,代价是每个打开过的实例留一份隐藏 DOM。 */
136
+ destroyOnClose: {
137
+ type: BooleanConstructor;
138
+ default: boolean;
139
+ };
125
140
  size: PropType<SizeType>;
126
141
  shape: PropType<ShapeType>;
127
142
  theme: {
@@ -140,6 +155,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
140
155
  disabled: boolean;
141
156
  loading: boolean;
142
157
  placement: DropPlacementsType;
158
+ destroyOnClose: boolean;
143
159
  theme: ThemeType;
144
160
  value: string;
145
161
  readonly: boolean;
@@ -2,6 +2,29 @@ interface MenuKeyboardEvent {
2
2
  key: string;
3
3
  currentTarget: EventTarget | null;
4
4
  preventDefault: () => void;
5
+ stopPropagation: () => void;
5
6
  }
6
7
  export declare const handleMenuItemKeydown: (event: MenuKeyboardEvent, activate: () => void) => void;
8
+ /**
9
+ * The first menu item directly inside `list`. Nested submenu lists and group lists own
10
+ * their items, so they are skipped. Unlike sibling navigation this does not require a
11
+ * laid-out box, because it runs right after the list has just been opened.
12
+ */
13
+ export declare const firstMenuItemOf: (list: HTMLElement | null) => HTMLElement | null;
14
+ /**
15
+ * Expands a submenu with the arrow that belongs to the orientation of the list holding it
16
+ * (ArrowDown inside a horizontal menubar, ArrowRight inside a vertical/inline menu), and
17
+ * with Enter/Space while it is still closed. Returns `true` when the event was consumed.
18
+ */
19
+ export declare const handleSubMenuTitleKeydown: (event: MenuKeyboardEvent, state: {
20
+ isMenubarItem: boolean;
21
+ opened: boolean;
22
+ }, actions: {
23
+ expandAndFocusFirst: () => void;
24
+ }) => boolean;
25
+ /**
26
+ * Escape inside an open submenu closes just that level and hands focus back to its
27
+ * trigger, so nested levels unwind one step at a time.
28
+ */
29
+ export declare const handleSubMenuListKeydown: (event: MenuKeyboardEvent, closeAndRefocusTrigger: () => void) => boolean;
7
30
  export {};
@@ -1,3 +1,4 @@
1
+ import { type VNodeChild } from "vue";
1
2
  import type { IconType } from "../icon";
2
3
  import Modal, { ModalPanel } from "./modal";
3
4
  export type { ModalProps } from "./modal";
@@ -8,10 +9,15 @@ export interface ModalInstance {
8
9
  destroy: () => void;
9
10
  }
10
11
  export interface ModalApiProps {
11
- title: string;
12
+ /**
13
+ * 标题:字符串之外还能给 VNode / 渲染函数产出的任意内容(VNodeChild)。
14
+ * react 侧同一字段是 ReactNode(见 kui-react/components/modal/api.tsx),两边到这里对齐。
15
+ */
16
+ title?: VNodeChild;
12
17
  okText?: string;
13
18
  cancelText?: string;
14
- content: string;
19
+ /** 正文,同 title:不再限定字符串 */
20
+ content?: VNodeChild;
15
21
  color?: string;
16
22
  icon?: IconType[];
17
23
  onOk?: () => void | PromiseLike<unknown>;
@@ -1,5 +1,5 @@
1
1
  import type { ForwardedComponent } from "../utils/vue";
2
- import { type ExtractPropTypes, type PropType } from "vue";
2
+ import { type ExtractPropTypes, type PropType, type VNodeChild } from "vue";
3
3
  import type { BooleanType } from "../const/types";
4
4
  declare const modalProps: {
5
5
  modelValue: {
@@ -7,7 +7,10 @@ declare const modalProps: {
7
7
  default: undefined;
8
8
  };
9
9
  value: BooleanType;
10
- title: StringConstructor;
10
+ title: {
11
+ type: PropType<string | VNodeChild>;
12
+ default: undefined;
13
+ };
11
14
  okText: StringConstructor;
12
15
  cancelText: StringConstructor;
13
16
  width: {
@@ -43,6 +46,10 @@ declare const modalProps: {
43
46
  default: boolean;
44
47
  };
45
48
  panelOnly: BooleanType;
49
+ destroyOnClose: {
50
+ type: BooleanType;
51
+ default: boolean;
52
+ };
46
53
  };
47
54
  export type ModalProps = ExtractPropTypes<typeof modalProps>;
48
55
  declare const Modal: import("vue").DefineComponent<ExtractPropTypes<{
@@ -51,7 +58,10 @@ declare const Modal: import("vue").DefineComponent<ExtractPropTypes<{
51
58
  default: undefined;
52
59
  };
53
60
  value: BooleanType;
54
- title: StringConstructor;
61
+ title: {
62
+ type: PropType<string | VNodeChild>;
63
+ default: undefined;
64
+ };
55
65
  okText: StringConstructor;
56
66
  cancelText: StringConstructor;
57
67
  width: {
@@ -87,6 +97,10 @@ declare const Modal: import("vue").DefineComponent<ExtractPropTypes<{
87
97
  default: boolean;
88
98
  };
89
99
  panelOnly: BooleanType;
100
+ destroyOnClose: {
101
+ type: BooleanType;
102
+ default: boolean;
103
+ };
90
104
  }>, () => import("vue/jsx-runtime").JSX.Element | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
91
105
  "update:modelValue": (visible: boolean) => boolean;
92
106
  openChange: (visible: boolean) => boolean;
@@ -99,7 +113,10 @@ declare const Modal: import("vue").DefineComponent<ExtractPropTypes<{
99
113
  default: undefined;
100
114
  };
101
115
  value: BooleanType;
102
- title: StringConstructor;
116
+ title: {
117
+ type: PropType<string | VNodeChild>;
118
+ default: undefined;
119
+ };
103
120
  okText: StringConstructor;
104
121
  cancelText: StringConstructor;
105
122
  width: {
@@ -135,6 +152,10 @@ declare const Modal: import("vue").DefineComponent<ExtractPropTypes<{
135
152
  default: boolean;
136
153
  };
137
154
  panelOnly: BooleanType;
155
+ destroyOnClose: {
156
+ type: BooleanType;
157
+ default: boolean;
158
+ };
138
159
  }>> & Readonly<{
139
160
  onCancel?: (() => any) | undefined;
140
161
  onClose?: (() => any) | undefined;
@@ -146,6 +167,8 @@ declare const Modal: import("vue").DefineComponent<ExtractPropTypes<{
146
167
  width: string | number;
147
168
  mask: boolean | undefined;
148
169
  footer: boolean | undefined;
170
+ title: VNodeChild;
171
+ destroyOnClose: boolean | undefined;
149
172
  modelValue: boolean | undefined;
150
173
  maskClosable: boolean | undefined;
151
174
  escKey: boolean | undefined;
@@ -1,11 +1,11 @@
1
- import { type PropType } from "vue";
1
+ import { type PropType, type VNodeChild } from "vue";
2
2
  import { type IconType } from "../icon";
3
3
  import type { ModalApiProps } from "./index";
4
4
  declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
5
- title: StringConstructor;
5
+ title: PropType<VNodeChild>;
6
6
  okText: StringConstructor;
7
7
  cancelText: StringConstructor;
8
- content: StringConstructor;
8
+ content: PropType<VNodeChild>;
9
9
  color: StringConstructor;
10
10
  icon: PropType<IconType[]>;
11
11
  onOk: PropType<NonNullable<ModalApiProps["onOk"]>>;
@@ -17,10 +17,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
17
17
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
18
18
  destroy: () => true;
19
19
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
20
- title: StringConstructor;
20
+ title: PropType<VNodeChild>;
21
21
  okText: StringConstructor;
22
22
  cancelText: StringConstructor;
23
- content: StringConstructor;
23
+ content: PropType<VNodeChild>;
24
24
  color: StringConstructor;
25
25
  icon: PropType<IconType[]>;
26
26
  onOk: PropType<NonNullable<ModalApiProps["onOk"]>>;
@@ -1,5 +1,5 @@
1
1
  import { type ExtractPropTypes, type PropType } from "vue";
2
- import type { BooleanType, ShapeType, SizeType, ThemeType } from "../const/types";
2
+ import type { BooleanType, ShapeType, SizeType, SurfaceThemeType } from "../const/types";
3
3
  declare const pageProps: {
4
4
  disabled: BooleanType;
5
5
  showSizer: BooleanType;
@@ -14,7 +14,7 @@ declare const pageProps: {
14
14
  default: boolean;
15
15
  };
16
16
  theme: {
17
- type: PropType<ThemeType>;
17
+ type: PropType<SurfaceThemeType>;
18
18
  default: string;
19
19
  };
20
20
  shape: {
@@ -56,7 +56,7 @@ declare const Page: import("vue").DefineComponent<ExtractPropTypes<{
56
56
  default: boolean;
57
57
  };
58
58
  theme: {
59
- type: PropType<ThemeType>;
59
+ type: PropType<SurfaceThemeType>;
60
60
  default: string;
61
61
  };
62
62
  shape: {
@@ -100,7 +100,7 @@ declare const Page: import("vue").DefineComponent<ExtractPropTypes<{
100
100
  default: boolean;
101
101
  };
102
102
  theme: {
103
- type: PropType<ThemeType>;
103
+ type: PropType<SurfaceThemeType>;
104
104
  default: string;
105
105
  };
106
106
  shape: {
@@ -132,7 +132,7 @@ declare const Page: import("vue").DefineComponent<ExtractPropTypes<{
132
132
  "onUpdate:pageSize"?: ((pageSize: number) => any) | undefined;
133
133
  }>, {
134
134
  page: number;
135
- theme: ThemeType;
135
+ theme: SurfaceThemeType;
136
136
  shape: ShapeType;
137
137
  showTotal: boolean | undefined;
138
138
  responsive: boolean | undefined;
@@ -16,6 +16,11 @@ declare const popconfirmProps: {
16
16
  type: PropType<PlacementsType>;
17
17
  default: string;
18
18
  };
19
+ /** 关闭后是否销毁面板内容。默认销毁(重开时重新挂载);设为 false 可保留面板内的表单状态,代价是每个打开过的实例留一份隐藏 DOM。 */
20
+ destroyOnClose: {
21
+ type: BooleanType;
22
+ default: boolean;
23
+ };
19
24
  panelOnly: BooleanType;
20
25
  };
21
26
  export type PopconfirmProps = ExtractPropTypes<typeof popconfirmProps>;
@@ -34,6 +39,11 @@ declare const Popconfirm: import("vue").DefineComponent<ExtractPropTypes<{
34
39
  type: PropType<PlacementsType>;
35
40
  default: string;
36
41
  };
42
+ /** 关闭后是否销毁面板内容。默认销毁(重开时重新挂载);设为 false 可保留面板内的表单状态,代价是每个打开过的实例留一份隐藏 DOM。 */
43
+ destroyOnClose: {
44
+ type: BooleanType;
45
+ default: boolean;
46
+ };
37
47
  panelOnly: BooleanType;
38
48
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
39
49
  "update:show": (show: boolean) => boolean;
@@ -54,6 +64,11 @@ declare const Popconfirm: import("vue").DefineComponent<ExtractPropTypes<{
54
64
  type: PropType<PlacementsType>;
55
65
  default: string;
56
66
  };
67
+ /** 关闭后是否销毁面板内容。默认销毁(重开时重新挂载);设为 false 可保留面板内的表单状态,代价是每个打开过的实例留一份隐藏 DOM。 */
68
+ destroyOnClose: {
69
+ type: BooleanType;
70
+ default: boolean;
71
+ };
57
72
  panelOnly: BooleanType;
58
73
  }>> & Readonly<{
59
74
  onCancel?: (() => any) | undefined;
@@ -61,6 +76,7 @@ declare const Popconfirm: import("vue").DefineComponent<ExtractPropTypes<{
61
76
  onOk?: (() => any) | undefined;
62
77
  }>, {
63
78
  placement: PlacementsType;
79
+ destroyOnClose: boolean | undefined;
64
80
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
65
81
  export declare const PopconfirmPanel: ForwardedComponent<typeof Popconfirm>;
66
82
  export default Popconfirm;
@@ -15,6 +15,11 @@ declare const poptipProps: {
15
15
  type: PropType<PlacementsType>;
16
16
  default: string;
17
17
  };
18
+ /** 关闭后是否销毁面板内容。默认销毁(重开时重新挂载);设为 false 可保留面板内的表单状态,代价是每个打开过的实例留一份隐藏 DOM。 */
19
+ destroyOnClose: {
20
+ type: BooleanType;
21
+ default: boolean;
22
+ };
18
23
  panelOnly: BooleanType;
19
24
  };
20
25
  export type PoptipProps = ExtractPropTypes<typeof poptipProps>;
@@ -32,6 +37,11 @@ declare const Poptip: import("vue").DefineComponent<ExtractPropTypes<{
32
37
  type: PropType<PlacementsType>;
33
38
  default: string;
34
39
  };
40
+ /** 关闭后是否销毁面板内容。默认销毁(重开时重新挂载);设为 false 可保留面板内的表单状态,代价是每个打开过的实例留一份隐藏 DOM。 */
41
+ destroyOnClose: {
42
+ type: BooleanType;
43
+ default: boolean;
44
+ };
35
45
  panelOnly: BooleanType;
36
46
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
37
47
  "update:show": (show: boolean) => boolean;
@@ -50,6 +60,11 @@ declare const Poptip: import("vue").DefineComponent<ExtractPropTypes<{
50
60
  type: PropType<PlacementsType>;
51
61
  default: string;
52
62
  };
63
+ /** 关闭后是否销毁面板内容。默认销毁(重开时重新挂载);设为 false 可保留面板内的表单状态,代价是每个打开过的实例留一份隐藏 DOM。 */
64
+ destroyOnClose: {
65
+ type: BooleanType;
66
+ default: boolean;
67
+ };
53
68
  panelOnly: BooleanType;
54
69
  }>> & Readonly<{
55
70
  onClose?: (() => any) | undefined;
@@ -59,6 +74,7 @@ declare const Poptip: import("vue").DefineComponent<ExtractPropTypes<{
59
74
  show: boolean;
60
75
  trigger: "click" | "focus" | "hover";
61
76
  placement: PlacementsType;
77
+ destroyOnClose: boolean | undefined;
62
78
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
63
79
  export declare const PoptipPanel: ForwardedComponent<typeof Poptip>;
64
80
  export default Poptip;
@@ -4,6 +4,8 @@ export interface PopupLayer {
4
4
  close: () => void;
5
5
  }
6
6
  export declare function registerPopupLayer(layer: PopupLayer): () => void;
7
+ /** 还开着的弹层里最晚打开那位的顺序号;一个都没有则 0。遮罩层用它判断自己有没有被弹层压住。 */
8
+ export declare function latestPopupLayerOrder(): number;
7
9
  export declare function isTopPopupLayer(layer: PopupLayer): boolean;
8
10
  export declare function popupLayerElements(layer: PopupLayer): HTMLElement[];
9
11
  export declare function closePopupChildren(popup: HTMLElement): void;
@@ -1,5 +1,5 @@
1
1
  import { type ExtractPropTypes, type PropType } from "vue";
2
- import type { BooleanType, QRCodeErrorLevel, QRCodeStatus, ShapeType, ThemeType } from "../const/types";
2
+ import type { BooleanType, QRCodeErrorLevel, QRCodeStatus, ShapeType, SurfaceThemeType } from "../const/types";
3
3
  declare const qrCodeProps: {
4
4
  value: {
5
5
  type: StringConstructor;
@@ -22,7 +22,7 @@ declare const qrCodeProps: {
22
22
  default: boolean;
23
23
  };
24
24
  theme: {
25
- type: PropType<ThemeType>;
25
+ type: PropType<SurfaceThemeType>;
26
26
  default: string;
27
27
  };
28
28
  shape: {
@@ -83,7 +83,7 @@ declare const QRCode: import("vue").DefineComponent<ExtractPropTypes<{
83
83
  default: boolean;
84
84
  };
85
85
  theme: {
86
- type: PropType<ThemeType>;
86
+ type: PropType<SurfaceThemeType>;
87
87
  default: string;
88
88
  };
89
89
  shape: {
@@ -141,7 +141,7 @@ declare const QRCode: import("vue").DefineComponent<ExtractPropTypes<{
141
141
  default: boolean;
142
142
  };
143
143
  theme: {
144
- type: PropType<ThemeType>;
144
+ type: PropType<SurfaceThemeType>;
145
145
  default: string;
146
146
  };
147
147
  shape: {
@@ -180,7 +180,7 @@ declare const QRCode: import("vue").DefineComponent<ExtractPropTypes<{
180
180
  }>, {
181
181
  margin: number;
182
182
  size: number;
183
- theme: ThemeType;
183
+ theme: SurfaceThemeType;
184
184
  shape: ShapeType;
185
185
  bordered: boolean | undefined;
186
186
  status: QRCodeStatus;
@@ -1,5 +1,5 @@
1
1
  import { type ExtractPropTypes, type PropType } from "vue";
2
- import type { BooleanType, ShapeType, SizeType, ThemeType } from "../const/types";
2
+ import type { BooleanType, ShapeType, SizeType, SurfaceThemeType } from "../const/types";
3
3
  import type { IconType } from "../icon";
4
4
  import type { ChangeEvent } from "./types";
5
5
  declare const radioButtonProps: {
@@ -13,7 +13,7 @@ declare const radioButtonProps: {
13
13
  value: {
14
14
  type: (NumberConstructor | StringConstructor)[];
15
15
  };
16
- theme: PropType<ThemeType>;
16
+ theme: PropType<SurfaceThemeType>;
17
17
  disabled: BooleanType;
18
18
  readonly: BooleanType;
19
19
  checked: BooleanType;
@@ -37,7 +37,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
37
37
  value: {
38
38
  type: (NumberConstructor | StringConstructor)[];
39
39
  };
40
- theme: PropType<ThemeType>;
40
+ theme: PropType<SurfaceThemeType>;
41
41
  disabled: BooleanType;
42
42
  readonly: BooleanType;
43
43
  checked: BooleanType;
@@ -63,7 +63,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
63
63
  value: {
64
64
  type: (NumberConstructor | StringConstructor)[];
65
65
  };
66
- theme: PropType<ThemeType>;
66
+ theme: PropType<SurfaceThemeType>;
67
67
  disabled: BooleanType;
68
68
  readonly: BooleanType;
69
69
  checked: BooleanType;
@@ -1,5 +1,5 @@
1
1
  import { type ExtractPropTypes, type PropType } from "vue";
2
- import type { BooleanType, DirectionType, RadioType, ShapeType, SizeType, ThemeType } from "../const/types";
2
+ import type { BooleanType, DirectionType, RadioType, ShapeType, SizeType, SurfaceThemeType } from "../const/types";
3
3
  import type { RadioOption } from "./types";
4
4
  declare const radioGroupProps: {
5
5
  modelValue: PropType<string | number>;
@@ -14,7 +14,7 @@ declare const radioGroupProps: {
14
14
  type: PropType<SizeType>;
15
15
  };
16
16
  theme: {
17
- type: PropType<ThemeType>;
17
+ type: PropType<SurfaceThemeType>;
18
18
  };
19
19
  shape: PropType<ShapeType>;
20
20
  options: PropType<RadioOption[]>;
@@ -1,5 +1,5 @@
1
1
  import { type ExtractPropTypes, type PropType } from "vue";
2
- import type { BooleanType, SizeType, ThemeType } from "../const/types";
2
+ import type { BooleanType, SizeType, MarkThemeType } from "../const/types";
3
3
  import type { ChangeEvent } from "./types";
4
4
  declare const radioProps: {
5
5
  modelValue: {
@@ -17,7 +17,7 @@ declare const radioProps: {
17
17
  disabled: BooleanType;
18
18
  readonly: BooleanType;
19
19
  theme: {
20
- type: PropType<ThemeType>;
20
+ type: PropType<MarkThemeType>;
21
21
  default: string;
22
22
  };
23
23
  size: {
@@ -41,7 +41,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
41
41
  disabled: BooleanType;
42
42
  readonly: BooleanType;
43
43
  theme: {
44
- type: PropType<ThemeType>;
44
+ type: PropType<MarkThemeType>;
45
45
  default: string;
46
46
  };
47
47
  size: {
@@ -67,7 +67,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
67
67
  disabled: BooleanType;
68
68
  readonly: BooleanType;
69
69
  theme: {
70
- type: PropType<ThemeType>;
70
+ type: PropType<MarkThemeType>;
71
71
  default: string;
72
72
  };
73
73
  size: {
@@ -78,7 +78,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
78
78
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
79
79
  "onUpdate:checked"?: ((value: boolean) => any) | undefined;
80
80
  }>, {
81
- theme: ThemeType;
81
+ theme: MarkThemeType;
82
82
  modelValue: boolean;
83
83
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
84
84
  export default _default;
@@ -44,5 +44,23 @@ export interface RippleInstance {
44
44
  /** Stop the loop and release all GPU resources. */
45
45
  destroy: () => void;
46
46
  }
47
+ /**
48
+ * Attributes that turn a canvas into an HTML-in-Canvas host, and the matching
49
+ * opt-in for the element that gets drawn.
50
+ */
51
+ export interface HtmlInCanvasMarkup {
52
+ canvas: Record<string, string>;
53
+ element: Record<string, string>;
54
+ }
55
+ /**
56
+ * Chrome 156 renames the experimental boolean `layoutsubtree` to the
57
+ * standardized `content="drawable"`, and the element handed to
58
+ * `drawElementImage()` now declares itself with its own `drawable` attribute
59
+ * (WICG html-in-canvas issue #169). Browsers advertise the new spelling with a
60
+ * reflected `content` IDL attribute, so the shape is read off the prototype
61
+ * rather than sniffed from a version string: every release only ever sees the
62
+ * attribute it understands.
63
+ */
64
+ export declare function htmlInCanvasMarkup(): HtmlInCanvasMarkup;
47
65
  export declare function supportsHtmlInCanvas(): boolean;
48
66
  export declare function createRipple(elements: RippleElements, options?: RippleOptions): RippleInstance | null;
@@ -11,6 +11,11 @@ declare const selectProps: {
11
11
  type: PropType<DropPlacementsType>;
12
12
  default: string;
13
13
  };
14
+ /** 关闭后是否销毁面板内容。默认销毁(重开时重新挂载);设为 false 可保留面板内的表单状态,代价是每个打开过的实例留一份隐藏 DOM。 */
15
+ destroyOnClose: {
16
+ type: BooleanType;
17
+ default: boolean;
18
+ };
14
19
  width: NumberConstructor;
15
20
  maxTagCount: NumberConstructor;
16
21
  modelValue: PropType<SelectValue | SelectValue[]>;