naive-ui 2.41.0 → 2.42.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 (209) hide show
  1. package/dist/index.js +930 -428
  2. package/dist/index.mjs +927 -430
  3. package/dist/index.prod.js +1 -1
  4. package/dist/index.prod.mjs +1 -1
  5. package/es/_internal/icon/src/styles/index.cssr.mjs +0 -1
  6. package/es/_internal/selection/src/Selection.d.ts +1 -1
  7. package/es/_mixins/use-form-item.d.ts +1 -1
  8. package/es/_utils/dom/download.d.ts +1 -0
  9. package/es/_utils/dom/download.mjs +3 -0
  10. package/es/_utils/index.d.ts +1 -1
  11. package/es/_utils/index.mjs +1 -1
  12. package/es/_utils/naive/index.d.ts +1 -0
  13. package/es/_utils/naive/index.mjs +1 -0
  14. package/es/_utils/naive/value.d.ts +1 -0
  15. package/es/_utils/naive/value.mjs +13 -0
  16. package/es/anchor/index.d.ts +1 -0
  17. package/es/anchor/src/Link.d.ts +3 -2
  18. package/es/anchor/src/Link.mjs +5 -2
  19. package/es/anchor/src/public-types.d.ts +5 -0
  20. package/es/anchor/src/public-types.mjs +1 -0
  21. package/es/auto-complete/src/AutoComplete.d.ts +1 -1
  22. package/es/cascader/src/Cascader.d.ts +1 -1
  23. package/es/components.d.ts +1 -0
  24. package/es/components.mjs +1 -0
  25. package/es/config-provider/src/internal-interface.d.ts +2 -0
  26. package/es/data-table/src/DataTable.d.ts +6 -6
  27. package/es/data-table/src/DataTable.mjs +6 -6
  28. package/es/data-table/src/styles/index.cssr.mjs +1 -0
  29. package/es/date-picker/src/DatePicker.d.ts +5 -5
  30. package/es/date-picker/src/DatePicker.mjs +1 -1
  31. package/es/date-picker/src/panel/date.d.ts +2 -2
  32. package/es/date-picker/src/panel/daterange.d.ts +3 -3
  33. package/es/date-picker/src/panel/datetime.d.ts +2 -2
  34. package/es/date-picker/src/panel/datetime.mjs +1 -1
  35. package/es/date-picker/src/panel/datetimerange.d.ts +3 -3
  36. package/es/date-picker/src/panel/datetimerange.mjs +2 -2
  37. package/es/date-picker/src/panel/month.d.ts +2 -2
  38. package/es/date-picker/src/panel/monthrange.d.ts +3 -3
  39. package/es/date-picker/src/panel/panelHeader.d.ts +4 -4
  40. package/es/date-picker/src/panel/use-calendar.d.ts +1 -1
  41. package/es/date-picker/src/panel/use-dual-calendar.d.ts +2 -2
  42. package/es/date-picker/src/panel/use-dual-calendar.mjs +3 -3
  43. package/es/date-picker/src/panel/use-panel-common.d.ts +1 -1
  44. package/es/date-picker/src/panel/use-panel-common.mjs +1 -1
  45. package/es/date-picker/src/props.d.ts +2 -2
  46. package/es/date-picker/src/props.mjs +1 -1
  47. package/es/descriptions/src/Descriptions.d.ts +1 -1
  48. package/es/form/index.d.ts +1 -0
  49. package/es/form/src/FormItem.d.ts +1 -1
  50. package/es/form/src/FormItemCol.d.ts +1 -1
  51. package/es/form/src/FormItemGridItem.d.ts +1 -1
  52. package/es/form/src/interface.d.ts +0 -1
  53. package/es/form/src/public-types.d.ts +1 -0
  54. package/es/form/src/public-types.mjs +1 -0
  55. package/es/icon/src/styles/index.cssr.mjs +0 -1
  56. package/es/input/src/Input.d.ts +1 -1
  57. package/es/input/src/Input.mjs +1 -8
  58. package/es/input-number/src/InputNumber.d.ts +1 -1
  59. package/es/input-otp/index.d.ts +3 -0
  60. package/es/input-otp/index.mjs +1 -0
  61. package/es/input-otp/src/InputOtp.d.ts +875 -0
  62. package/es/input-otp/src/InputOtp.mjs +322 -0
  63. package/es/input-otp/src/public-types.d.ts +24 -0
  64. package/es/input-otp/src/public-types.mjs +1 -0
  65. package/es/input-otp/src/styles/index.cssr.d.ts +2 -0
  66. package/es/input-otp/src/styles/index.cssr.mjs +20 -0
  67. package/es/input-otp/src/styles/input-otp-rtl.cssr.d.ts +2 -0
  68. package/es/input-otp/src/styles/input-otp-rtl.cssr.mjs +5 -0
  69. package/es/input-otp/styles/dark.d.ts +3 -0
  70. package/es/input-otp/styles/dark.mjs +12 -0
  71. package/es/input-otp/styles/index.d.ts +4 -0
  72. package/es/input-otp/styles/index.mjs +3 -0
  73. package/es/input-otp/styles/light.d.ts +81 -0
  74. package/es/input-otp/styles/light.mjs +22 -0
  75. package/es/input-otp/styles/rtl.d.ts +2 -0
  76. package/es/input-otp/styles/rtl.mjs +5 -0
  77. package/es/mention/src/Mention.d.ts +1 -1
  78. package/es/progress/src/Circle.d.ts +1 -1
  79. package/es/progress/src/MultipleCircle.d.ts +1 -1
  80. package/es/progress/src/Progress.d.ts +2 -2
  81. package/es/radio/src/Radio.mjs +5 -5
  82. package/es/radio/src/styles/radio.cssr.mjs +3 -7
  83. package/es/select/src/Select.d.ts +1 -1
  84. package/es/styles.d.ts +1 -0
  85. package/es/styles.mjs +1 -0
  86. package/es/tabs/src/TabPane.d.ts +1 -0
  87. package/es/themes/dark.mjs +2 -1
  88. package/es/themes/light.mjs +2 -0
  89. package/es/time-picker/src/TimePicker.d.ts +1 -1
  90. package/es/transfer/src/Transfer.d.ts +1 -1
  91. package/es/tree/src/Tree.d.ts +21 -17
  92. package/es/tree/src/Tree.mjs +4 -4
  93. package/es/tree/src/styles/index.cssr.mjs +0 -1
  94. package/es/tree-select/src/TreeSelect.d.ts +14 -1
  95. package/es/tree-select/src/TreeSelect.mjs +1 -0
  96. package/es/typography/src/text.d.ts +1 -1
  97. package/es/upload/index.d.ts +1 -0
  98. package/es/upload/index.mjs +1 -0
  99. package/es/upload/src/Upload.d.ts +11 -8
  100. package/es/upload/src/Upload.mjs +2 -0
  101. package/es/upload/src/UploadFile.mjs +8 -1
  102. package/es/upload/src/interface.d.ts +1 -0
  103. package/es/version.d.ts +1 -1
  104. package/es/version.mjs +1 -1
  105. package/es/watermark/src/Watermark.d.ts +1 -1
  106. package/lib/_internal/icon/src/styles/index.cssr.js +0 -1
  107. package/lib/_internal/selection/src/Selection.d.ts +1 -1
  108. package/lib/_mixins/use-form-item.d.ts +1 -1
  109. package/lib/_utils/dom/download.d.ts +1 -0
  110. package/lib/_utils/dom/download.js +4 -0
  111. package/lib/_utils/index.d.ts +1 -1
  112. package/lib/_utils/index.js +2 -1
  113. package/lib/_utils/naive/index.d.ts +1 -0
  114. package/lib/_utils/naive/index.js +3 -1
  115. package/lib/_utils/naive/value.d.ts +1 -0
  116. package/lib/_utils/naive/value.js +18 -0
  117. package/lib/anchor/index.d.ts +1 -0
  118. package/lib/anchor/src/Link.d.ts +3 -2
  119. package/lib/anchor/src/Link.js +4 -1
  120. package/lib/anchor/src/public-types.d.ts +5 -0
  121. package/lib/anchor/src/public-types.js +2 -0
  122. package/lib/auto-complete/src/AutoComplete.d.ts +1 -1
  123. package/lib/cascader/src/Cascader.d.ts +1 -1
  124. package/lib/components.d.ts +1 -0
  125. package/lib/components.js +1 -0
  126. package/lib/config-provider/src/internal-interface.d.ts +2 -0
  127. package/lib/data-table/src/DataTable.d.ts +6 -6
  128. package/lib/data-table/src/DataTable.js +6 -6
  129. package/lib/data-table/src/styles/index.cssr.js +1 -0
  130. package/lib/date-picker/src/DatePicker.d.ts +5 -5
  131. package/lib/date-picker/src/DatePicker.js +1 -1
  132. package/lib/date-picker/src/panel/date.d.ts +2 -2
  133. package/lib/date-picker/src/panel/daterange.d.ts +3 -3
  134. package/lib/date-picker/src/panel/datetime.d.ts +2 -2
  135. package/lib/date-picker/src/panel/datetime.js +1 -1
  136. package/lib/date-picker/src/panel/datetimerange.d.ts +3 -3
  137. package/lib/date-picker/src/panel/datetimerange.js +2 -2
  138. package/lib/date-picker/src/panel/month.d.ts +2 -2
  139. package/lib/date-picker/src/panel/monthrange.d.ts +3 -3
  140. package/lib/date-picker/src/panel/panelHeader.d.ts +4 -4
  141. package/lib/date-picker/src/panel/use-calendar.d.ts +1 -1
  142. package/lib/date-picker/src/panel/use-dual-calendar.d.ts +2 -2
  143. package/lib/date-picker/src/panel/use-dual-calendar.js +3 -3
  144. package/lib/date-picker/src/panel/use-panel-common.d.ts +1 -1
  145. package/lib/date-picker/src/panel/use-panel-common.js +1 -1
  146. package/lib/date-picker/src/props.d.ts +2 -2
  147. package/lib/date-picker/src/props.js +1 -1
  148. package/lib/descriptions/src/Descriptions.d.ts +1 -1
  149. package/lib/form/index.d.ts +1 -0
  150. package/lib/form/src/FormItem.d.ts +1 -1
  151. package/lib/form/src/FormItemCol.d.ts +1 -1
  152. package/lib/form/src/FormItemGridItem.d.ts +1 -1
  153. package/lib/form/src/interface.d.ts +0 -1
  154. package/lib/form/src/public-types.d.ts +1 -0
  155. package/lib/form/src/public-types.js +2 -0
  156. package/lib/icon/src/styles/index.cssr.js +0 -1
  157. package/lib/input/src/Input.d.ts +1 -1
  158. package/lib/input/src/Input.js +0 -7
  159. package/lib/input-number/src/InputNumber.d.ts +1 -1
  160. package/lib/input-otp/index.d.ts +3 -0
  161. package/lib/input-otp/index.js +9 -0
  162. package/lib/input-otp/src/InputOtp.d.ts +875 -0
  163. package/lib/input-otp/src/InputOtp.js +248 -0
  164. package/lib/input-otp/src/public-types.d.ts +24 -0
  165. package/lib/input-otp/src/public-types.js +2 -0
  166. package/lib/input-otp/src/styles/index.cssr.d.ts +2 -0
  167. package/lib/input-otp/src/styles/index.cssr.js +25 -0
  168. package/lib/input-otp/src/styles/input-otp-rtl.cssr.d.ts +2 -0
  169. package/lib/input-otp/src/styles/input-otp-rtl.cssr.js +10 -0
  170. package/lib/input-otp/styles/dark.d.ts +3 -0
  171. package/lib/input-otp/styles/dark.js +14 -0
  172. package/lib/input-otp/styles/index.d.ts +4 -0
  173. package/lib/input-otp/styles/index.js +12 -0
  174. package/lib/input-otp/styles/light.d.ts +81 -0
  175. package/lib/input-otp/styles/light.js +25 -0
  176. package/lib/input-otp/styles/rtl.d.ts +2 -0
  177. package/lib/input-otp/styles/rtl.js +11 -0
  178. package/lib/mention/src/Mention.d.ts +1 -1
  179. package/lib/progress/src/Circle.d.ts +1 -1
  180. package/lib/progress/src/MultipleCircle.d.ts +1 -1
  181. package/lib/progress/src/Progress.d.ts +2 -2
  182. package/lib/radio/src/Radio.js +2 -2
  183. package/lib/radio/src/styles/radio.cssr.js +3 -7
  184. package/lib/select/src/Select.d.ts +1 -1
  185. package/lib/styles.d.ts +1 -0
  186. package/lib/styles.js +99 -96
  187. package/lib/tabs/src/TabPane.d.ts +1 -0
  188. package/lib/themes/dark.js +1 -0
  189. package/lib/themes/light.js +92 -90
  190. package/lib/time-picker/src/TimePicker.d.ts +1 -1
  191. package/lib/transfer/src/Transfer.d.ts +1 -1
  192. package/lib/tree/src/Tree.d.ts +21 -17
  193. package/lib/tree/src/Tree.js +5 -4
  194. package/lib/tree/src/styles/index.cssr.js +0 -1
  195. package/lib/tree-select/src/TreeSelect.d.ts +14 -1
  196. package/lib/tree-select/src/TreeSelect.js +1 -1
  197. package/lib/typography/src/text.d.ts +1 -1
  198. package/lib/upload/index.d.ts +1 -0
  199. package/lib/upload/index.js +3 -1
  200. package/lib/upload/src/Upload.d.ts +11 -8
  201. package/lib/upload/src/Upload.js +2 -1
  202. package/lib/upload/src/UploadFile.js +7 -2
  203. package/lib/upload/src/interface.d.ts +1 -0
  204. package/lib/version.d.ts +1 -1
  205. package/lib/version.js +1 -1
  206. package/lib/watermark/src/Watermark.d.ts +1 -1
  207. package/package.json +1 -1
  208. package/volar.d.ts +3 -2
  209. package/web-types.json +139 -10
@@ -7,7 +7,6 @@ export default cB('base-icon', `
7
7
  display: inline-block;
8
8
  position: relative;
9
9
  fill: currentColor;
10
- transform: translateZ(0);
11
10
  `, [c('svg', `
12
11
  height: 1em;
13
12
  width: 1em;
@@ -1,4 +1,4 @@
1
- import type { FormValidationStatus } from '../../../form/src/interface';
1
+ import type { FormValidationStatus } from '../../../form/src/public-types';
2
2
  import type { SelectBaseOption } from '../../../select/src/interface';
3
3
  import type { TagRef } from '../../../tag/src/Tag';
4
4
  import type { RenderLabel, RenderLabelImpl } from '../../select-menu/src/interface';
@@ -1,4 +1,4 @@
1
- import type { FormValidationStatus } from '../form/src/interface';
1
+ import type { FormValidationStatus } from '../form/src/public-types';
2
2
  import { type ComputedRef, type Ref } from 'vue';
3
3
  type FormItemSize = 'small' | 'medium' | 'large';
4
4
  type AllowedSize = 'tiny' | 'small' | 'medium' | 'large' | 'huge' | number;
@@ -1 +1,2 @@
1
1
  export declare function download(url: string | null, name: string | undefined): void;
2
+ export declare function publicDownload(url: string, name: string | undefined): void;
@@ -8,4 +8,7 @@ export function download(url, name) {
8
8
  document.body.appendChild(a);
9
9
  a.click();
10
10
  document.body.removeChild(a);
11
+ }
12
+ export function publicDownload(url, name) {
13
+ download(url, name);
11
14
  }
@@ -5,7 +5,7 @@ export * from './dom';
5
5
  export { isBrowser } from './env/is-browser';
6
6
  export { isJsdom } from './env/is-jsdom';
7
7
  export { eventEffectNotPerformed, markEventEffectPerformed } from './event';
8
- export { getTitleAttribute, largerSize, smallerSize, throwError, warn, warnOnce } from './naive';
8
+ export { getTitleAttribute, isArrayShallowEqual, largerSize, smallerSize, throwError, warn, warnOnce } from './naive';
9
9
  export type { ExtractInternalPropTypes, ExtractPublicPropTypes, Mutable } from './naive';
10
10
  export { call, createDataKey, createInjectionKey, createRefSetter, flatten, getFirstSlotVNode, getFirstSlotVNodeWithTypedProps, getSlot, getVNodeChildren, isNodeVShowFalse, isSlotEmpty, keep, keysOf, mergeEventHandlers, omit, render, resolveSlot, resolveSlotWithTypedProps, resolveWrappedSlot, resolveWrappedSlotWithProps, Wrapper } from './vue';
11
11
  export type { MaybeArray } from './vue';
@@ -5,5 +5,5 @@ export * from "./dom/index.mjs";
5
5
  export { isBrowser } from "./env/is-browser.mjs";
6
6
  export { isJsdom } from "./env/is-jsdom.mjs";
7
7
  export { eventEffectNotPerformed, markEventEffectPerformed } from "./event/index.mjs";
8
- export { getTitleAttribute, largerSize, smallerSize, throwError, warn, warnOnce } from "./naive/index.mjs";
8
+ export { getTitleAttribute, isArrayShallowEqual, largerSize, smallerSize, throwError, warn, warnOnce } from "./naive/index.mjs";
9
9
  export { call, createDataKey, createInjectionKey, createRefSetter, flatten, getFirstSlotVNode, getFirstSlotVNodeWithTypedProps, getSlot, getVNodeChildren, isNodeVShowFalse, isSlotEmpty, keep, keysOf, mergeEventHandlers, omit, render, resolveSlot, resolveSlotWithTypedProps, resolveWrappedSlot, resolveWrappedSlotWithProps, Wrapper } from "./vue/index.mjs";
@@ -2,4 +2,5 @@ export { getTitleAttribute } from './attribute';
2
2
  export type { ExtractInternalPropTypes, ExtractPublicPropTypes } from './extract-public-props';
3
3
  export type { Mutable } from './mutable';
4
4
  export { largerSize, smallerSize } from './prop';
5
+ export { isArrayShallowEqual } from './value';
5
6
  export { throwError, warn, warnOnce } from './warn';
@@ -1,3 +1,4 @@
1
1
  export { getTitleAttribute } from "./attribute.mjs";
2
2
  export { largerSize, smallerSize } from "./prop.mjs";
3
+ export { isArrayShallowEqual } from "./value.mjs";
3
4
  export { throwError, warn, warnOnce } from "./warn.mjs";
@@ -0,0 +1 @@
1
+ export declare function isArrayShallowEqual<T extends Array<any>>(array1: T | null, array2: T | null): boolean;
@@ -0,0 +1,13 @@
1
+ export function isArrayShallowEqual(array1, array2) {
2
+ if (array1 === null && array2 === null) return true;
3
+ if (array1 === null || array2 === null) return false;
4
+ if (array1.length === array2.length) {
5
+ for (let i = 0; i < array1.length; ++i) {
6
+ if (array1[i] !== array2[i]) {
7
+ return false;
8
+ }
9
+ }
10
+ return true;
11
+ }
12
+ return false;
13
+ }
@@ -2,3 +2,4 @@ export { anchorProps, default as NAnchor } from './src/AnchorAdapter';
2
2
  export type { AnchorInst, AnchorProps } from './src/AnchorAdapter';
3
3
  export { anchorLinkProps, default as NAnchorLink } from './src/Link';
4
4
  export type { AnchorLinkProps } from './src/Link';
5
+ export type * from './src/public-types';
@@ -1,4 +1,5 @@
1
- import { type Ref } from 'vue';
1
+ import type { Ref, SlotsType } from 'vue';
2
+ import type { AnchorLinkSlots } from './public-types';
2
3
  import { type ExtractPublicPropTypes } from '../../_utils';
3
4
  export interface AnchorInjection {
4
5
  activeHref: Ref<string | null>;
@@ -20,5 +21,5 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
20
21
  }>, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
21
22
  readonly title: StringConstructor;
22
23
  readonly href: StringConstructor;
23
- }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
24
+ }>> & Readonly<{}>, {}, SlotsType<AnchorLinkSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
24
25
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import { useMemo } from 'vooks';
2
2
  import { defineComponent, h, inject, ref, toRef, watch } from 'vue';
3
- import { createInjectionKey, getTitleAttribute } from "../../_utils/index.mjs";
3
+ import { createInjectionKey, getTitleAttribute, resolveSlot } from "../../_utils/index.mjs";
4
4
  import { useInjectionCollection, useInjectionElementCollection } from "../../_utils/composable/index.mjs";
5
5
  export const anchorInjectionKey = createInjectionKey('n-anchor');
6
6
  export const anchorLinkProps = {
@@ -10,6 +10,7 @@ export const anchorLinkProps = {
10
10
  export default defineComponent({
11
11
  name: 'AnchorLink',
12
12
  props: anchorLinkProps,
13
+ slots: Object,
13
14
  setup(props, {
14
15
  slots
15
16
  }) {
@@ -44,7 +45,9 @@ export default defineComponent({
44
45
  href: props.href,
45
46
  title: getTitleAttribute(props.title),
46
47
  onClick: handleClick
47
- }, props.title), (_a = slots.default) === null || _a === void 0 ? void 0 : _a.call(slots));
48
+ }, {
49
+ default: () => resolveSlot(slots.title, () => [props.title])
50
+ }), (_a = slots.default) === null || _a === void 0 ? void 0 : _a.call(slots));
48
51
  };
49
52
  }
50
53
  });
@@ -0,0 +1,5 @@
1
+ import type { VNode } from 'vue';
2
+ export interface AnchorLinkSlots {
3
+ default?: () => VNode[];
4
+ title?: () => VNode[];
5
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -1,5 +1,5 @@
1
1
  import type { RenderLabel, RenderOption } from '../../_internal/select-menu/src/interface';
2
- import type { FormValidationStatus } from '../../form/src/interface';
2
+ import type { FormValidationStatus } from '../../form/src/public-types';
3
3
  import type { SelectBaseOption, SelectGroupOption, SelectIgnoredOption } from '../../select/src/interface';
4
4
  import type { AutoCompleteDefaultSlotProps, AutoCompleteOptions, OnSelect, OnUpdateValue } from './interface';
5
5
  import { type TreeNode } from 'treemate';
@@ -1,6 +1,6 @@
1
1
  import type { InternalSelectionInst } from '../../_internal';
2
2
  import type { ExtractPublicPropTypes, MaybeArray } from '../../_utils';
3
- import type { FormValidationStatus } from '../../form/src/interface';
3
+ import type { FormValidationStatus } from '../../form/src/public-types';
4
4
  import type { PopoverProps } from '../../popover';
5
5
  import type { SelectBaseOption } from '../../select/src/interface';
6
6
  import type { CascaderMenuInstance, CascaderOption, ExpandTrigger, Filter, Key, OnLoad, OnUpdateValue, SelectMenuInstance, Value } from './interface';
@@ -48,6 +48,7 @@ export * from './image';
48
48
  export * from './infinite-scroll';
49
49
  export * from './input';
50
50
  export * from './input-number';
51
+ export * from './input-otp';
51
52
  export * from './layout';
52
53
  export * from './legacy-grid';
53
54
  export * from './legacy-transfer';
package/es/components.mjs CHANGED
@@ -48,6 +48,7 @@ export * from "./image/index.mjs";
48
48
  export * from "./infinite-scroll/index.mjs";
49
49
  export * from "./input/index.mjs";
50
50
  export * from "./input-number/index.mjs";
51
+ export * from "./input-otp/index.mjs";
51
52
  export * from "./layout/index.mjs";
52
53
  export * from "./legacy-grid/index.mjs";
53
54
  export * from "./legacy-transfer/index.mjs";
@@ -49,6 +49,7 @@ import type { IconWrapperTheme } from '../../icon-wrapper/styles';
49
49
  import type { IconTheme } from '../../icon/styles';
50
50
  import type { ImageTheme } from '../../image/styles';
51
51
  import type { InputNumberTheme } from '../../input-number/styles';
52
+ import type { InputOtpTheme } from '../../input-otp/styles';
52
53
  import type { Size as InputSize } from '../../input/src/interface';
53
54
  import type { InputTheme } from '../../input/styles';
54
55
  import type { LayoutTheme } from '../../layout/styles';
@@ -190,6 +191,7 @@ export interface GlobalThemeWithoutCommon {
190
191
  Marquee?: MarqueeTheme;
191
192
  InternalSelectMenu?: InternalSelectMenuTheme;
192
193
  InternalSelection?: InternalSelectionTheme;
194
+ InputOtp?: InputOtpTheme;
193
195
  }
194
196
  export interface GlobalComponentConfig {
195
197
  Pagination?: {
@@ -3872,12 +3872,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
3872
3872
  '--n-td-color-striped': string;
3873
3873
  '--n-td-color-striped-modal': string;
3874
3874
  '--n-td-color-striped-popover': string;
3875
- 'n-td-color-sorting': string;
3876
- 'n-td-color-sorting-modal': string;
3877
- 'n-td-color-sorting-popover': string;
3878
- 'n-th-color-sorting': string;
3879
- 'n-th-color-sorting-modal': string;
3880
- 'n-th-color-sorting-popover': string;
3875
+ '--n-td-color-sorting': string;
3876
+ '--n-td-color-sorting-modal': string;
3877
+ '--n-td-color-sorting-popover': string;
3878
+ '--n-th-color-sorting': string;
3879
+ '--n-th-color-sorting-modal': string;
3880
+ '--n-th-color-sorting-popover': string;
3881
3881
  }> | undefined;
3882
3882
  themeClass: import("vue").Ref<string, string> | undefined;
3883
3883
  onRender: (() => void) | undefined;
@@ -375,12 +375,12 @@ export default defineComponent({
375
375
  '--n-td-color-striped': tdColorStriped,
376
376
  '--n-td-color-striped-modal': tdColorStripedModal,
377
377
  '--n-td-color-striped-popover': tdColorStripedPopover,
378
- 'n-td-color-sorting': tdColorSorting,
379
- 'n-td-color-sorting-modal': tdColorSortingModal,
380
- 'n-td-color-sorting-popover': tdColorSortingPopover,
381
- 'n-th-color-sorting': thColorSorting,
382
- 'n-th-color-sorting-modal': thColorSortingModal,
383
- 'n-th-color-sorting-popover': thColorSortingPopover
378
+ '--n-td-color-sorting': tdColorSorting,
379
+ '--n-td-color-sorting-modal': tdColorSortingModal,
380
+ '--n-td-color-sorting-popover': tdColorSortingPopover,
381
+ '--n-th-color-sorting': thColorSorting,
382
+ '--n-th-color-sorting-modal': thColorSortingModal,
383
+ '--n-th-color-sorting-popover': thColorSortingPopover
384
384
  };
385
385
  });
386
386
  const themeClassHandle = inlineThemeDisabled ? useThemeClass('data-table', computed(() => props.size[0]), cssVarsRef, props) : undefined;
@@ -60,6 +60,7 @@ export default c([cB('data-table', `
60
60
  --n-merged-th-color: var(--n-th-color);
61
61
  --n-merged-td-color: var(--n-td-color);
62
62
  --n-merged-border-color: var(--n-border-color);
63
+ --n-merged-th-color-hover: var(--n-th-color-hover);
63
64
  --n-merged-th-color-sorting: var(--n-th-color-sorting);
64
65
  --n-merged-td-color-hover: var(--n-td-color-hover);
65
66
  --n-merged-td-color-sorting: var(--n-td-color-sorting);
@@ -71,7 +71,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
71
71
  readonly endPlaceholder: StringConstructor;
72
72
  readonly format: StringConstructor;
73
73
  readonly dateFormat: StringConstructor;
74
- readonly timerPickerFormat: StringConstructor;
74
+ readonly timePickerFormat: StringConstructor;
75
75
  readonly actions: import("vue").PropType<Array<"clear" | "confirm" | "now"> | null>;
76
76
  readonly shortcuts: import("vue").PropType<import("./interface").Shortcuts>;
77
77
  readonly isDateDisabled: import("vue").PropType<import("./interface").IsDateDisabled>;
@@ -85,7 +85,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
85
85
  readonly firstDayOfWeek: import("vue").PropType<import("./interface").FirstDayOfWeek>;
86
86
  readonly inputReadonly: BooleanConstructor;
87
87
  readonly closeOnSelect: BooleanConstructor;
88
- readonly status: import("vue").PropType<import("../../form/src/interface").FormValidationStatus>;
88
+ readonly status: import("vue").PropType<import("../..").FormValidationStatus>;
89
89
  readonly timePickerProps: import("vue").PropType<import("../..").TimePickerProps | [import("../..").TimePickerProps, import("../..").TimePickerProps]>;
90
90
  readonly onClear: import("vue").PropType<() => void>;
91
91
  readonly onConfirm: import("vue").PropType<import("./interface").OnConfirm>;
@@ -2042,7 +2042,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
2042
2042
  }, any>;
2043
2043
  }>>>;
2044
2044
  }>, {
2045
- mergedStatus: import("vue").ComputedRef<import("../../form/src/interface").FormValidationStatus | undefined>;
2045
+ mergedStatus: import("vue").ComputedRef<import("../..").FormValidationStatus | undefined>;
2046
2046
  mergedClsPrefix: Ref<string, string>;
2047
2047
  mergedBordered: import("vue").ComputedRef<boolean>;
2048
2048
  namespace: import("vue").ComputedRef<string | undefined>;
@@ -3349,7 +3349,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
3349
3349
  readonly endPlaceholder: StringConstructor;
3350
3350
  readonly format: StringConstructor;
3351
3351
  readonly dateFormat: StringConstructor;
3352
- readonly timerPickerFormat: StringConstructor;
3352
+ readonly timePickerFormat: StringConstructor;
3353
3353
  readonly actions: import("vue").PropType<Array<"clear" | "confirm" | "now"> | null>;
3354
3354
  readonly shortcuts: import("vue").PropType<import("./interface").Shortcuts>;
3355
3355
  readonly isDateDisabled: import("vue").PropType<import("./interface").IsDateDisabled>;
@@ -3363,7 +3363,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
3363
3363
  readonly firstDayOfWeek: import("vue").PropType<import("./interface").FirstDayOfWeek>;
3364
3364
  readonly inputReadonly: BooleanConstructor;
3365
3365
  readonly closeOnSelect: BooleanConstructor;
3366
- readonly status: import("vue").PropType<import("../../form/src/interface").FormValidationStatus>;
3366
+ readonly status: import("vue").PropType<import("../..").FormValidationStatus>;
3367
3367
  readonly timePickerProps: import("vue").PropType<import("../..").TimePickerProps | [import("../..").TimePickerProps, import("../..").TimePickerProps]>;
3368
3368
  readonly onClear: import("vue").PropType<() => void>;
3369
3369
  readonly onConfirm: import("vue").PropType<import("./interface").OnConfirm>;
@@ -821,7 +821,7 @@ export default defineComponent({
821
821
  onPrevMonth: this.onPrevMonth,
822
822
  onNextYear: this.onNextYear,
823
823
  onPrevYear: this.onPrevYear,
824
- timerPickerFormat: this.timerPickerFormat,
824
+ timePickerFormat: this.timePickerFormat,
825
825
  dateFormat: this.dateFormat,
826
826
  calendarDayFormat: this.calendarDayFormat,
827
827
  calendarHeaderYearFormat: this.calendarHeaderYearFormat,
@@ -28,7 +28,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
28
28
  readonly type: BooleanConstructor;
29
29
  readonly default: undefined;
30
30
  };
31
- timerPickerFormat: {
31
+ timePickerFormat: {
32
32
  readonly type: StringConstructor;
33
33
  readonly value: "HH:mm:ss";
34
34
  };
@@ -2092,7 +2092,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2092
2092
  readonly type: BooleanConstructor;
2093
2093
  readonly default: undefined;
2094
2094
  };
2095
- timerPickerFormat: {
2095
+ timePickerFormat: {
2096
2096
  readonly type: StringConstructor;
2097
2097
  readonly value: "HH:mm:ss";
2098
2098
  };
@@ -19,7 +19,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
19
19
  readonly type: BooleanConstructor;
20
20
  readonly default: undefined;
21
21
  };
22
- readonly timerPickerFormat: {
22
+ readonly timePickerFormat: {
23
23
  readonly type: StringConstructor;
24
24
  readonly value: "HH:mm:ss";
25
25
  };
@@ -2075,7 +2075,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2075
2075
  endCalendarNextMonth: () => void;
2076
2076
  endCalendarNextYear: () => void;
2077
2077
  mergedIsDateDisabled: (ts: number) => boolean;
2078
- changeStartEndTime: (startTime: number, endTime: number, source: "shortcutPreview" | "wipPreview" | "done") => void;
2078
+ changeStartEndTime: (startTime: number, endTime: number, source: "shortcutPreview" | "wipPreview" | "done" | "shortcutDone") => void;
2079
2079
  ranges: import("vue").Ref<Record<string, [number, number]> | undefined, Record<string, [number, number]> | undefined>;
2080
2080
  calendarMonthBeforeYear: import("vue").ComputedRef<boolean>;
2081
2081
  startCalendarMonth: import("vue").ComputedRef<string>;
@@ -2115,7 +2115,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2115
2115
  readonly type: BooleanConstructor;
2116
2116
  readonly default: undefined;
2117
2117
  };
2118
- readonly timerPickerFormat: {
2118
+ readonly timePickerFormat: {
2119
2119
  readonly type: StringConstructor;
2120
2120
  readonly value: "HH:mm:ss";
2121
2121
  };
@@ -23,7 +23,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
23
23
  readonly type: BooleanConstructor;
24
24
  readonly default: undefined;
25
25
  };
26
- readonly timerPickerFormat: {
26
+ readonly timePickerFormat: {
27
27
  readonly type: StringConstructor;
28
28
  readonly value: "HH:mm:ss";
29
29
  };
@@ -2083,7 +2083,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2083
2083
  readonly type: BooleanConstructor;
2084
2084
  readonly default: undefined;
2085
2085
  };
2086
- readonly timerPickerFormat: {
2086
+ readonly timePickerFormat: {
2087
2087
  readonly type: StringConstructor;
2088
2088
  readonly value: "HH:mm:ss";
2089
2089
  };
@@ -53,7 +53,7 @@ export default defineComponent({
53
53
  }), h(NTimePicker, Object.assign({
54
54
  size: this.timePickerSize,
55
55
  placeholder: this.locale.selectTime,
56
- format: this.timerPickerFormat
56
+ format: this.timePickerFormat
57
57
  }, Array.isArray(timePickerProps) ? undefined : timePickerProps, {
58
58
  showIcon: false,
59
59
  to: false,
@@ -19,7 +19,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
19
19
  readonly type: BooleanConstructor;
20
20
  readonly default: undefined;
21
21
  };
22
- readonly timerPickerFormat: {
22
+ readonly timePickerFormat: {
23
23
  readonly type: StringConstructor;
24
24
  readonly value: "HH:mm:ss";
25
25
  };
@@ -2075,7 +2075,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2075
2075
  endCalendarNextMonth: () => void;
2076
2076
  endCalendarNextYear: () => void;
2077
2077
  mergedIsDateDisabled: (ts: number) => boolean;
2078
- changeStartEndTime: (startTime: number, endTime: number, source: "shortcutPreview" | "wipPreview" | "done") => void;
2078
+ changeStartEndTime: (startTime: number, endTime: number, source: "shortcutPreview" | "wipPreview" | "done" | "shortcutDone") => void;
2079
2079
  ranges: import("vue").Ref<Record<string, [number, number]> | undefined, Record<string, [number, number]> | undefined>;
2080
2080
  calendarMonthBeforeYear: import("vue").ComputedRef<boolean>;
2081
2081
  startCalendarMonth: import("vue").ComputedRef<string>;
@@ -2115,7 +2115,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2115
2115
  readonly type: BooleanConstructor;
2116
2116
  readonly default: undefined;
2117
2117
  };
2118
- readonly timerPickerFormat: {
2118
+ readonly timePickerFormat: {
2119
2119
  readonly type: StringConstructor;
2120
2120
  readonly value: "HH:mm:ss";
2121
2121
  };
@@ -54,7 +54,7 @@ export default defineComponent({
54
54
  onUpdateValue: this.handleStartDateInput
55
55
  }), h(NTimePicker, Object.assign({
56
56
  placeholder: this.locale.selectTime,
57
- format: this.timerPickerFormat,
57
+ format: this.timePickerFormat,
58
58
  size: this.timePickerSize
59
59
  }, Array.isArray(timePickerProps) ? timePickerProps[0] : timePickerProps, {
60
60
  value: this.startTimeValue,
@@ -82,7 +82,7 @@ export default defineComponent({
82
82
  onUpdateValue: this.handleEndDateInput
83
83
  }), h(NTimePicker, Object.assign({
84
84
  placeholder: this.locale.selectTime,
85
- format: this.timerPickerFormat,
85
+ format: this.timePickerFormat,
86
86
  size: this.timePickerSize
87
87
  }, Array.isArray(timePickerProps) ? timePickerProps[1] : timePickerProps, {
88
88
  disabled: this.isSelecting,
@@ -30,7 +30,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
30
30
  readonly type: BooleanConstructor;
31
31
  readonly default: undefined;
32
32
  };
33
- timerPickerFormat: {
33
+ timePickerFormat: {
34
34
  readonly type: StringConstructor;
35
35
  readonly value: "HH:mm:ss";
36
36
  };
@@ -2096,7 +2096,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2096
2096
  readonly type: BooleanConstructor;
2097
2097
  readonly default: undefined;
2098
2098
  };
2099
- timerPickerFormat: {
2099
+ timePickerFormat: {
2100
2100
  readonly type: StringConstructor;
2101
2101
  readonly value: "HH:mm:ss";
2102
2102
  };
@@ -25,7 +25,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
25
25
  readonly type: BooleanConstructor;
26
26
  readonly default: undefined;
27
27
  };
28
- timerPickerFormat: {
28
+ timePickerFormat: {
29
29
  readonly type: StringConstructor;
30
30
  readonly value: "HH:mm:ss";
31
31
  };
@@ -2082,7 +2082,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2082
2082
  endCalendarNextMonth: () => void;
2083
2083
  endCalendarNextYear: () => void;
2084
2084
  mergedIsDateDisabled: (ts: number) => boolean;
2085
- changeStartEndTime: (startTime: number, endTime: number, source: "shortcutPreview" | "wipPreview" | "done") => void;
2085
+ changeStartEndTime: (startTime: number, endTime: number, source: "shortcutPreview" | "wipPreview" | "done" | "shortcutDone") => void;
2086
2086
  ranges: import("vue").Ref<Record<string, [number, number]> | undefined, Record<string, [number, number]> | undefined>;
2087
2087
  calendarMonthBeforeYear: import("vue").ComputedRef<boolean>;
2088
2088
  startCalendarMonth: import("vue").ComputedRef<string>;
@@ -2126,7 +2126,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2126
2126
  readonly type: BooleanConstructor;
2127
2127
  readonly default: undefined;
2128
2128
  };
2129
- timerPickerFormat: {
2129
+ timePickerFormat: {
2130
2130
  readonly type: StringConstructor;
2131
2131
  readonly value: "HH:mm:ss";
2132
2132
  };
@@ -52,7 +52,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
52
52
  readonly type: BooleanConstructor;
53
53
  readonly default: undefined;
54
54
  };
55
- timerPickerFormat: {
55
+ timePickerFormat: {
56
56
  readonly type: StringConstructor;
57
57
  readonly value: "HH:mm:ss";
58
58
  };
@@ -2133,7 +2133,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2133
2133
  readonly type: BooleanConstructor;
2134
2134
  readonly default: undefined;
2135
2135
  };
2136
- timerPickerFormat: {
2136
+ timePickerFormat: {
2137
2137
  readonly type: StringConstructor;
2138
2138
  readonly value: "HH:mm:ss";
2139
2139
  };
@@ -4207,7 +4207,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
4207
4207
  readonly type: BooleanConstructor;
4208
4208
  readonly default: undefined;
4209
4209
  };
4210
- timerPickerFormat: {
4210
+ timePickerFormat: {
4211
4211
  readonly type: StringConstructor;
4212
4212
  readonly value: "HH:mm:ss";
4213
4213
  };
@@ -6288,7 +6288,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
6288
6288
  readonly type: BooleanConstructor;
6289
6289
  readonly default: undefined;
6290
6290
  };
6291
- timerPickerFormat: {
6291
+ timePickerFormat: {
6292
6292
  readonly type: StringConstructor;
6293
6293
  readonly value: "HH:mm:ss";
6294
6294
  };
@@ -22,7 +22,7 @@ declare const useCalendarProps: {
22
22
  readonly type: BooleanConstructor;
23
23
  readonly default: undefined;
24
24
  };
25
- readonly timerPickerFormat: {
25
+ readonly timePickerFormat: {
26
26
  readonly type: StringConstructor;
27
27
  readonly value: "HH:mm:ss";
28
28
  };
@@ -24,7 +24,7 @@ declare const useDualCalendarProps: {
24
24
  readonly type: BooleanConstructor;
25
25
  readonly default: undefined;
26
26
  };
27
- readonly timerPickerFormat: {
27
+ readonly timePickerFormat: {
28
28
  readonly type: StringConstructor;
29
29
  readonly value: "HH:mm:ss";
30
30
  };
@@ -2081,7 +2081,7 @@ declare function useDualCalendar(props: ExtractPropTypes<typeof useDualCalendarP
2081
2081
  endCalendarNextMonth: () => void;
2082
2082
  endCalendarNextYear: () => void;
2083
2083
  mergedIsDateDisabled: (ts: number) => boolean;
2084
- changeStartEndTime: (startTime: number, endTime: number, source: "shortcutPreview" | "wipPreview" | "done") => void;
2084
+ changeStartEndTime: (startTime: number, endTime: number, source: "shortcutPreview" | "wipPreview" | "done" | "shortcutDone") => void;
2085
2085
  ranges: import("vue").Ref<Record<string, [number, number]> | undefined, Record<string, [number, number]> | undefined>;
2086
2086
  calendarMonthBeforeYear: import("vue").ComputedRef<boolean>;
2087
2087
  startCalendarMonth: import("vue").ComputedRef<string>;
@@ -347,7 +347,7 @@ function useDualCalendar(props, type) {
347
347
  if (typeof startTime !== 'number') {
348
348
  startTime = getTime(startTime);
349
349
  }
350
- if (source !== 'shortcutPreview') {
350
+ if (source !== 'shortcutPreview' && source !== 'shortcutDone') {
351
351
  let startDefaultTime;
352
352
  let endDefaultTime;
353
353
  if (type === 'datetimerange') {
@@ -369,7 +369,7 @@ function useDualCalendar(props, type) {
369
369
  endTime = getTime(set(endTime, endDefaultTime));
370
370
  }
371
371
  }
372
- panelCommon.doUpdateValue([startTime, endTime], props.panel && source === 'done');
372
+ panelCommon.doUpdateValue([startTime, endTime], props.panel && (source === 'done' || source === 'shortcutDone'));
373
373
  }
374
374
  function sanitizeValue(datetime) {
375
375
  if (type === 'datetimerange') {
@@ -510,7 +510,7 @@ function useDualCalendar(props, type) {
510
510
  function handleRangeShortcutClick(shortcut) {
511
511
  const shortcutValue = panelCommon.getShortcutValue(shortcut);
512
512
  if (!Array.isArray(shortcutValue)) return;
513
- changeStartEndTime(shortcutValue[0], shortcutValue[1], 'done');
513
+ changeStartEndTime(shortcutValue[0], shortcutValue[1], 'shortcutDone');
514
514
  panelCommon.clearPendingValue();
515
515
  handleConfirmClick();
516
516
  }
@@ -14,7 +14,7 @@ declare const usePanelCommonProps: {
14
14
  readonly type: BooleanConstructor;
15
15
  readonly default: undefined;
16
16
  };
17
- readonly timerPickerFormat: {
17
+ readonly timePickerFormat: {
18
18
  readonly type: StringConstructor;
19
19
  readonly value: "HH:mm:ss";
20
20
  };
@@ -16,7 +16,7 @@ const usePanelCommonProps = {
16
16
  type: Boolean,
17
17
  default: undefined
18
18
  },
19
- timerPickerFormat: {
19
+ timePickerFormat: {
20
20
  type: String,
21
21
  value: TIME_FORMAT
22
22
  },
@@ -1,7 +1,7 @@
1
1
  import type { PropType } from 'vue';
2
2
  import type { FollowerPlacement } from 'vueuc';
3
3
  import type { MaybeArray } from '../../_utils';
4
- import type { FormValidationStatus } from '../../form/src/interface';
4
+ import type { FormValidationStatus } from '../../form/src/public-types';
5
5
  import type { TimePickerProps } from '../../time-picker';
6
6
  import type { DatePickerType } from './config';
7
7
  import type { DefaultTime, FirstDayOfWeek, FormattedValue, IsDateDisabled, IsTimeDisabled, OnConfirm, OnUpdateFormattedValue, OnUpdateValue, Shortcuts, Value } from './interface';
@@ -52,7 +52,7 @@ export declare const datePickerProps: {
52
52
  readonly endPlaceholder: StringConstructor;
53
53
  readonly format: StringConstructor;
54
54
  readonly dateFormat: StringConstructor;
55
- readonly timerPickerFormat: StringConstructor;
55
+ readonly timePickerFormat: StringConstructor;
56
56
  readonly actions: PropType<Array<"clear" | "confirm" | "now"> | null>;
57
57
  readonly shortcuts: PropType<Shortcuts>;
58
58
  readonly isDateDisabled: PropType<IsDateDisabled>;
@@ -44,7 +44,7 @@ export const datePickerProps = Object.assign(Object.assign({}, useTheme.props),
44
44
  endPlaceholder: String,
45
45
  format: String,
46
46
  dateFormat: String,
47
- timerPickerFormat: String,
47
+ timePickerFormat: String,
48
48
  actions: Array,
49
49
  shortcuts: Object,
50
50
  isDateDisabled: Function,
@@ -412,7 +412,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
412
412
  readonly column: number;
413
413
  readonly separator: string;
414
414
  readonly bordered: boolean;
415
- readonly labelAlign: "left" | "right" | "center";
416
415
  readonly labelPlacement: "left" | "top";
416
+ readonly labelAlign: "left" | "right" | "center";
417
417
  }, SlotsType<DescriptionsSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
418
418
  export default _default;