@sdata/web-vue 2.1.0 → 2.1.1

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 (131) hide show
  1. package/es/_components/icon-hover.js +8 -5
  2. package/es/_components/icon-hover.vue.d.ts +4 -2
  3. package/es/_components/icon-hover.vue_vue_type_script_lang.js +1 -0
  4. package/es/_components/picker/input-range.vue.d.ts +4 -2
  5. package/es/_components/picker/input.vue.d.ts +4 -2
  6. package/es/_hooks/use-input.d.ts +1 -1
  7. package/es/_hooks/use-pagination.d.ts +7 -4
  8. package/es/_hooks/use-popup-overflow-hidden.js +2 -1
  9. package/es/_utils/debounce.d.ts +1 -1
  10. package/es/_utils/get-value-by-path.d.ts +2 -2
  11. package/es/_utils/is-equal.js +1 -1
  12. package/es/_utils/is.d.ts +3 -3
  13. package/es/_utils/is.js +1 -1
  14. package/es/_utils/omit.d.ts +1 -1
  15. package/es/_utils/pick.d.ts +1 -1
  16. package/es/_utils/pick.js +1 -2
  17. package/es/_utils/throttle-by-raf.d.ts +2 -2
  18. package/es/_utils/types.d.ts +1 -1
  19. package/es/affix/affix.vue.d.ts +1 -1
  20. package/es/affix/index.d.ts +3 -3
  21. package/es/alert/alert.vue.d.ts +4 -2
  22. package/es/alert/index.d.ts +8 -4
  23. package/es/auto-complete/auto-complete.js +2 -3
  24. package/es/calendar/components/cell.vue.d.ts +2 -2
  25. package/es/calendar/components/event.vue_vue_type_script_setup_true_lang.js +3 -2
  26. package/es/calendar/context.d.ts +2 -1
  27. package/es/cascader/base-cascader-panel.js +4 -5
  28. package/es/cascader/cascader-option.js +6 -8
  29. package/es/checkbox/checkbox.d.ts +4 -2
  30. package/es/checkbox/index.d.ts +8 -4
  31. package/es/collapse/collapse-item.d.ts +4 -2
  32. package/es/collapse/index.d.ts +4 -2
  33. package/es/date-picker/context.d.ts +1 -1
  34. package/es/date-picker/hooks/use-inject-datepicker-transform.d.ts +1 -1
  35. package/es/date-picker/hooks/use-provide-datepicker-transform.d.ts +1 -1
  36. package/es/date-picker/hooks/use-range-header-value.d.ts +3 -3
  37. package/es/date-picker/index.d.ts +15 -13
  38. package/es/date-picker/interface.d.ts +1 -1
  39. package/es/date-picker/panels/date/index.vue.d.ts +2 -2
  40. package/es/date-picker/panels/footer.vue.d.ts +1 -1
  41. package/es/date-picker/panels/month/index.vue.d.ts +1 -1
  42. package/es/date-picker/panels/shortcuts.vue.d.ts +1 -1
  43. package/es/date-picker/panels/week/index.vue.d.ts +2 -2
  44. package/es/date-picker/picker-panel.vue.d.ts +7 -7
  45. package/es/date-picker/picker.vue.d.ts +11 -9
  46. package/es/date-picker/range-picker-panel.vue.d.ts +9 -9
  47. package/es/date-picker/range-picker.vue.d.ts +15 -13
  48. package/es/drawer/drawer.vue.d.ts +5 -3
  49. package/es/drawer/index.d.ts +11 -7
  50. package/es/dropdown/dropdown-button.vue.d.ts +2 -2
  51. package/es/dropdown/dropdown.vue.d.ts +2 -2
  52. package/es/dropdown/index.d.ts +7 -7
  53. package/es/dropdown/interface.d.ts +2 -2
  54. package/es/form/context.d.ts +7 -6
  55. package/es/form/form-item.vue.d.ts +6 -10
  56. package/es/form/index.d.ts +6 -10
  57. package/es/form/interface.d.ts +2 -2
  58. package/es/grid/grid-col.vue.d.ts +3 -7
  59. package/es/grid/hook/use-responsive-value.d.ts +7 -19
  60. package/es/grid/index.d.ts +2 -6
  61. package/es/grid/interface.d.ts +11 -18
  62. package/es/image/image.vue.d.ts +2 -2
  63. package/es/image/interface.d.ts +1 -1
  64. package/es/image/preview-group.vue.d.ts +1 -1
  65. package/es/image/preview.vue.d.ts +1 -1
  66. package/es/input/index.d.ts +4 -2
  67. package/es/input/input-password.vue.d.ts +4 -2
  68. package/es/input/input.js +3 -4
  69. package/es/input-number/input-number.js +20 -19
  70. package/es/input-tag/input-tag.js +10 -12
  71. package/es/list/use-pagination.d.ts +7 -4
  72. package/es/locale/index.d.ts +1 -1
  73. package/es/locale/index.js +1 -1
  74. package/es/locale/interface.d.ts +1 -0
  75. package/es/mention/mention.js +10 -10
  76. package/es/menu/interface.d.ts +1 -3
  77. package/es/menu/sub-menu-pop.vue.d.ts +2 -2
  78. package/es/message/message.vue.d.ts +4 -2
  79. package/es/modal/index.d.ts +8 -4
  80. package/es/modal/interface.d.ts +2 -2
  81. package/es/modal/modal.vue.d.ts +4 -2
  82. package/es/notification/notification.vue.d.ts +4 -2
  83. package/es/page-header/index.d.ts +8 -4
  84. package/es/page-header/page-header.vue.d.ts +4 -2
  85. package/es/pagination/page-jumper.vue.d.ts +1 -1
  86. package/es/pagination/page-options.vue.d.ts +16 -8
  87. package/es/popconfirm/index.d.ts +3 -3
  88. package/es/popconfirm/popconfirm.vue.d.ts +1 -1
  89. package/es/radio/index.d.ts +8 -4
  90. package/es/radio/radio.d.ts +4 -2
  91. package/es/scrollbar/interface.d.ts +1 -1
  92. package/es/select/index.d.ts +16 -8
  93. package/es/select/select.d.ts +8 -4
  94. package/es/select/select.js +6 -4
  95. package/es/statistic/statistic.vue_vue_type_script_lang.js +2 -2
  96. package/es/table/table-operation-td.d.ts +16 -8
  97. package/es/table/table-operation-td.js +10 -13
  98. package/es/table/table-th.js +17 -6
  99. package/es/table/table.js +33 -34
  100. package/es/tabs/tabs-tab.vue.d.ts +4 -2
  101. package/es/textarea/index.d.ts +8 -4
  102. package/es/textarea/textarea.vue.d.ts +4 -2
  103. package/es/time-picker/index.d.ts +23 -15
  104. package/es/time-picker/panel.vue.d.ts +1 -1
  105. package/es/time-picker/range-panel.d.ts +1 -1
  106. package/es/time-picker/range-panel.js +6 -7
  107. package/es/time-picker/time-picker.vue.d.ts +11 -7
  108. package/es/time-picker/utils/index.d.ts +1 -1
  109. package/es/transfer/index.d.ts +24 -12
  110. package/es/transfer/transfer-list-item.js +2 -5
  111. package/es/transfer/transfer-view.vue.d.ts +12 -6
  112. package/es/transfer/transfer.vue.d.ts +12 -6
  113. package/es/tree/base-node.vue.d.ts +8 -4
  114. package/es/tree/interface.d.ts +1 -1
  115. package/es/tree/transition-node-list.vue.d.ts +8 -4
  116. package/es/tree/tree.vue.d.ts +2 -2
  117. package/es/tree-select/panel.js +5 -3
  118. package/es/tree-select/tree-select.vue.d.ts +1 -1
  119. package/es/trigger/context.d.ts +3 -3
  120. package/es/trigger/interface.d.ts +3 -2
  121. package/es/trigger/trigger.js +17 -16
  122. package/es/typography/base.js +2 -2
  123. package/es/typography/edit-content.vue.d.ts +12 -6
  124. package/es/typography/interface.d.ts +1 -1
  125. package/es/typography/operations.vue.d.ts +1 -1
  126. package/es/upload/interfaces.d.ts +3 -3
  127. package/es/upload/upload-list.js +2 -5
  128. package/es/upload/upload.js +4 -5
  129. package/es/verification-code/verification-code.js +7 -6
  130. package/json/web-types.json +2 -2
  131. package/package.json +1 -1
@@ -328,13 +328,13 @@ var base_default = /* @__PURE__ */ defineComponent({
328
328
  }
329
329
  function resizeOnNextFrame() {
330
330
  if (!(ellipsis.value && !expanded.value)) return;
331
- caf(rafId);
331
+ if (rafId != null) caf(rafId);
332
332
  rafId = raf(() => {
333
333
  calEllipsis();
334
334
  });
335
335
  }
336
336
  onUnmounted(() => {
337
- caf(rafId);
337
+ if (rafId != null) caf(rafId);
338
338
  });
339
339
  watch(() => ellipsisConfig.value.rows, () => {
340
340
  resizeOnNextFrame();
@@ -626,7 +626,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
626
626
  };
627
627
  }>, {
628
628
  prefixCls: string;
629
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
629
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
630
630
  prefix: {
631
631
  type: StringConstructor;
632
632
  };
@@ -638,7 +638,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
638
638
  type: BooleanConstructor;
639
639
  default: boolean;
640
640
  };
641
- }>> & Readonly<{}>, {
641
+ }>> & Readonly<{
642
+ onClick?: ((...args: any[]) => any) | undefined;
643
+ }>, {
642
644
  size: "medium" | "large" | "small" | "mini";
643
645
  disabled: boolean;
644
646
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1405,7 +1407,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
1405
1407
  };
1406
1408
  }>, {
1407
1409
  prefixCls: string;
1408
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
1410
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
1409
1411
  prefix: {
1410
1412
  type: StringConstructor;
1411
1413
  };
@@ -1417,7 +1419,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
1417
1419
  type: BooleanConstructor;
1418
1420
  default: boolean;
1419
1421
  };
1420
- }>> & Readonly<{}>, {
1422
+ }>> & Readonly<{
1423
+ onClick?: ((...args: any[]) => any) | undefined;
1424
+ }>, {
1421
1425
  size: "medium" | "large" | "small" | "mini";
1422
1426
  disabled: boolean;
1423
1427
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -2198,7 +2202,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
2198
2202
  };
2199
2203
  }>, {
2200
2204
  prefixCls: string;
2201
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
2205
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
2202
2206
  prefix: {
2203
2207
  type: StringConstructor;
2204
2208
  };
@@ -2210,7 +2214,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
2210
2214
  type: BooleanConstructor;
2211
2215
  default: boolean;
2212
2216
  };
2213
- }>> & Readonly<{}>, {
2217
+ }>> & Readonly<{
2218
+ onClick?: ((...args: any[]) => any) | undefined;
2219
+ }>, {
2214
2220
  size: "medium" | "large" | "small" | "mini";
2215
2221
  disabled: boolean;
2216
2222
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -7,7 +7,7 @@ export interface EllipsisConfig {
7
7
  suffix?: string;
8
8
  showTooltip?: boolean | {
9
9
  type: 'tooltip' | 'popover';
10
- props: Record<string, any>;
10
+ props: Record<string, unknown>;
11
11
  };
12
12
  css?: boolean;
13
13
  }
@@ -13,7 +13,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
13
13
  }>, {
14
14
  prefixCls: string;
15
15
  showExpand: import("vue").ComputedRef<boolean>;
16
- t: (key: string, ...args: any[]) => string;
16
+ t: (key: string, ...args: unknown[]) => string;
17
17
  onEditClick(): void;
18
18
  onCopyClick(): void;
19
19
  onExpandClick(): void;
@@ -6,7 +6,7 @@ export interface FileItem {
6
6
  status?: FileStatus;
7
7
  file?: File;
8
8
  percent?: number;
9
- response?: any;
9
+ response?: unknown;
10
10
  url?: string;
11
11
  name?: string;
12
12
  }
@@ -29,8 +29,8 @@ export interface RequestOption {
29
29
  data?: Record<string, string | Blob> | ((fileItem: FileItem) => Record<string, string | Blob>);
30
30
  withCredentials?: boolean;
31
31
  onProgress: (percent: number, event?: ProgressEvent) => void;
32
- onSuccess: (response?: any) => void;
33
- onError: (response?: any) => void;
32
+ onSuccess: (response?: unknown) => void;
33
+ onError: (response?: unknown) => void;
34
34
  }
35
35
  export interface UploadRequest extends Record<string, unknown> {
36
36
  abort?: () => void;
@@ -2,7 +2,7 @@ import { getPrefixCls } from "../_utils/global-config.js";
2
2
  import { isFunction } from "../_utils/is.js";
3
3
  import upload_list_item_default from "./upload-list-item.js";
4
4
  import upload_picture_item_default from "./upload-picture-item.js";
5
- import { TransitionGroup, computed, createVNode, defineComponent } from "vue";
5
+ import { TransitionGroup, computed, createVNode, defineComponent, mergeProps } from "vue";
6
6
  //#region components/upload/upload-list.tsx
7
7
  var upload_list_default = /* @__PURE__ */ defineComponent({
8
8
  name: "UploadList",
@@ -38,10 +38,7 @@ var upload_list_default = /* @__PURE__ */ defineComponent({
38
38
  "key": `item-${index}`
39
39
  }, null);
40
40
  };
41
- return () => createVNode(TransitionGroup, {
42
- "tag": "div",
43
- "class": cls.value
44
- }, { default: () => {
41
+ return () => createVNode(TransitionGroup, mergeProps({ "tag": "div" }, { class: cls.value }), { default: () => {
45
42
  var _slots$uploadButton;
46
43
  return [...props.fileList.map((item, index) => renderItem(item, index)), props.listType === "picture-card" && ((_slots$uploadButton = slots["upload-button"]) === null || _slots$uploadButton === void 0 ? void 0 : _slots$uploadButton.call(slots))];
47
44
  } });
@@ -8,7 +8,7 @@ import { uploadInjectionKey } from "./context.js";
8
8
  import { isImage, uploadRequest } from "./utils.js";
9
9
  import upload_button_default from "./upload-button.js";
10
10
  import upload_list_default from "./upload-list.js";
11
- import { computed, createVNode, defineComponent, provide, reactive, ref, toRefs, watch } from "vue";
11
+ import { computed, createVNode, defineComponent, mergeProps, provide, reactive, ref, toRefs, watch } from "vue";
12
12
  //#region components/upload/upload.tsx
13
13
  var upload_default = /* @__PURE__ */ defineComponent({
14
14
  name: "Upload",
@@ -591,13 +591,12 @@ var upload_default = /* @__PURE__ */ defineComponent({
591
591
  const render = () => {
592
592
  if (!props.showFileList) return props.showUploadButton && renderButton();
593
593
  return createVNode("div", { "class": [`${prefixCls}-wrapper`, `${prefixCls}-wrapper-type-${props.listType}`] }, [
594
- props.imagePreview && imageList.value.length > 0 && createVNode(preview_group_default, {
594
+ props.imagePreview && imageList.value.length > 0 && createVNode(preview_group_default, mergeProps({
595
595
  "srcList": imageList.value,
596
596
  "visible": imagePreviewVisible.value,
597
597
  "current": imagePreviewCurrent.value,
598
- "onChange": handleImagePreviewChange,
599
- "onVisibleChange": handleImagePreviewVisibleChange
600
- }, null),
598
+ "onChange": handleImagePreviewChange
599
+ }, { onVisibleChange: handleImagePreviewVisibleChange }), null),
601
600
  props.listType !== "picture-card" && props.showUploadButton && renderButton(),
602
601
  createVNode(upload_list_default, {
603
602
  "fileList": _fileList.value,
@@ -2,7 +2,7 @@ import { getPrefixCls } from "../_utils/global-config.js";
2
2
  import { isExist, isFunction, isString } from "../_utils/is.js";
3
3
  import { ArrowLeft, ArrowRight, Backspace } from "../_utils/keycode.js";
4
4
  import Input from "../input/index.js";
5
- import { Fragment, computed, createVNode, defineComponent, ref, watch } from "vue";
5
+ import { Fragment, computed, createVNode, defineComponent, mergeProps, ref, watch } from "vue";
6
6
  //#region components/verification-code/verification-code.tsx
7
7
  var verification_code_default = /* @__PURE__ */ defineComponent({
8
8
  name: "VerificationCode",
@@ -174,7 +174,7 @@ var verification_code_default = /* @__PURE__ */ defineComponent({
174
174
  return () => {
175
175
  return createVNode("div", { "class": prefixCls }, [innerValue.value.map((c, i) => {
176
176
  var _props$separator;
177
- return createVNode(Fragment, null, [createVNode(Input, {
177
+ return createVNode(Fragment, null, [createVNode(Input, mergeProps({
178
178
  "key": i,
179
179
  "ref": (el) => inputRefList.value[i] = el,
180
180
  "type": type.value,
@@ -185,10 +185,11 @@ var verification_code_default = /* @__PURE__ */ defineComponent({
185
185
  "disabled": props.disabled,
186
186
  "readonly": props.readonly,
187
187
  "onFocus": () => focusFirstEmptyInput(i),
188
- "onInput": (v, e) => handleInput(i, v, e),
189
- "onKeydown": (e) => handleKeydown(i, e),
190
- "onPaste": (e) => handlePaste(e, i)
191
- }, null), (_props$separator = props.separator) === null || _props$separator === void 0 ? void 0 : _props$separator.call(props, i, c)]);
188
+ "onInput": (v, e) => handleInput(i, v, e)
189
+ }, {
190
+ onKeydown: (e) => handleKeydown(i, e),
191
+ onPaste: (e) => handlePaste(e, i)
192
+ }), null), (_props$separator = props.separator) === null || _props$separator === void 0 ? void 0 : _props$separator.call(props, i, c)]);
192
193
  })]);
193
194
  };
194
195
  }
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "framework": "vue",
4
4
  "name": "@sdata/web-vue",
5
- "version": "1.19.0",
5
+ "version": "2.1.0",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "types-syntax": "typescript",
@@ -3314,7 +3314,7 @@
3314
3314
  "name": "xs",
3315
3315
  "description": "<576px responsive grid",
3316
3316
  "value": {
3317
- "type": "number | { [key: string]: any }",
3317
+ "type": "number | ColResponsiveConfig",
3318
3318
  "kind": "expression"
3319
3319
  }
3320
3320
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sdata/web-vue",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "SD Design Vue: A Vue.js 3 UI Library",
5
5
  "keywords": [
6
6
  "sd",