@opentiny/vue-renderless 3.28.1 → 3.29.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 (59) hide show
  1. package/alert/vue.js +4 -1
  2. package/base-select/index.js +6 -3
  3. package/base-select/vue.js +1 -1
  4. package/date-range/index.js +1 -1
  5. package/dialog-box/vue.js +4 -1
  6. package/dialog-select/index.js +1 -1
  7. package/drawer/index.js +6 -0
  8. package/drawer/vue.js +3 -1
  9. package/fluent-editor/index.js +72 -4
  10. package/fluent-editor/vue.js +3 -1
  11. package/form-item/index.js +1 -1
  12. package/form-item/vue.js +11 -1
  13. package/grid-select/index.js +3 -3
  14. package/guide/index.js +17 -11
  15. package/guide/vue.js +2 -1
  16. package/input/vue.js +1 -1
  17. package/modal/index.js +11 -11
  18. package/modal/vue.js +3 -0
  19. package/notify/vue.js +4 -1
  20. package/package.json +3 -3
  21. package/picker/vue.js +3 -2
  22. package/qr-code/vue.js +3 -1
  23. package/rate/index.js +3 -1
  24. package/search/vue.js +6 -1
  25. package/select/index.js +6 -3
  26. package/select/vue.js +5 -4
  27. package/statistic/index.js +48 -1
  28. package/statistic/vue.js +31 -11
  29. package/tag-group/index.js +3 -0
  30. package/tag-input/index.js +91 -0
  31. package/tag-input/vue.js +72 -0
  32. package/time/index.js +22 -0
  33. package/time/vue.js +14 -2
  34. package/types/alert.type.d.ts +2 -0
  35. package/types/button-group.type.d.ts +5 -0
  36. package/types/date-picker.type.d.ts +1 -1
  37. package/types/dialog-box.type.d.ts +2 -0
  38. package/types/drawer.type.d.ts +2 -0
  39. package/types/{dropdown-item.type-b3ced3ce.d.ts → dropdown-item.type-f83b014f.d.ts} +1 -1
  40. package/types/dropdown-item.type.d.ts +1 -1
  41. package/types/dropdown-menu.type.d.ts +1 -1
  42. package/types/file-upload.type.d.ts +1 -1
  43. package/types/form-item.type.d.ts +1 -1
  44. package/types/{form.type-a54e1c06.d.ts → form.type-e0db2f7c.d.ts} +9 -0
  45. package/types/form.type.d.ts +1 -1
  46. package/types/input.type.d.ts +1 -1
  47. package/types/modal.type.d.ts +2 -0
  48. package/types/popeditor.type.d.ts +2 -2
  49. package/types/popover.type.d.ts +1 -1
  50. package/types/rate.type.d.ts +4 -0
  51. package/types/search.type.d.ts +1 -0
  52. package/types/statistic.type.d.ts +17 -1
  53. package/types/tag-input.type.d.ts +113 -0
  54. package/types/transfer.type.d.ts +3 -3
  55. package/types/tree-menu.type.d.ts +1 -1
  56. package/types/upload-dragger.type.d.ts +1 -1
  57. package/types/{upload-list.type-36a8374a.d.ts → upload-list.type-d5ff675d.d.ts} +1 -1
  58. package/types/upload-list.type.d.ts +1 -1
  59. package/types/upload.type.d.ts +1 -1
@@ -0,0 +1,113 @@
1
+ import { ExtractPropTypes } from 'vue';
2
+ import { ISharedRenderlessFunctionParams } from './shared.type.js';
3
+
4
+ declare const tagInputProps: {
5
+ modelValue: {
6
+ type: ArrayConstructor;
7
+ default: () => never[];
8
+ };
9
+ size: {
10
+ type: StringConstructor;
11
+ default: string;
12
+ validator: (value: string) => boolean;
13
+ };
14
+ tagType: {
15
+ type: StringConstructor;
16
+ default: string;
17
+ validator: (value: string) => boolean;
18
+ };
19
+ tagEffect: {
20
+ type: StringConstructor;
21
+ default: string;
22
+ validator: (value: string) => boolean;
23
+ };
24
+ clearable: {
25
+ type: BooleanConstructor;
26
+ default: boolean;
27
+ };
28
+ disabled: {
29
+ type: BooleanConstructor;
30
+ default: boolean;
31
+ };
32
+ placeholder: {
33
+ type: StringConstructor;
34
+ default: string;
35
+ };
36
+ max: {
37
+ type: NumberConstructor;
38
+ default: number;
39
+ };
40
+ readonly: {
41
+ type: BooleanConstructor;
42
+ default: boolean;
43
+ };
44
+ separator: {
45
+ type: StringConstructor;
46
+ default: undefined;
47
+ };
48
+ minCollapsedNum: {
49
+ type: NumberConstructor;
50
+ default: number;
51
+ };
52
+ draggable: {
53
+ type: BooleanConstructor;
54
+ default: boolean;
55
+ };
56
+ tiny_mode: StringConstructor;
57
+ tiny_mode_root: BooleanConstructor;
58
+ tiny_template: (FunctionConstructor | ObjectConstructor)[];
59
+ tiny_renderless: FunctionConstructor;
60
+ tiny_theme: StringConstructor;
61
+ tiny_mcp_config: ObjectConstructor;
62
+ tiny_chart_theme: ObjectConstructor;
63
+ };
64
+
65
+ declare const addTag: ({ emit, props, state }: Pick<ITagInputRenderlessParams, 'emit' | 'props' | 'state'>) => () => void;
66
+ declare const removeTag: ({ emit, props, state }: Pick<ITagInputRenderlessParams, 'emit' | 'props' | 'state'>) => (index: number) => void;
67
+ declare const handleBackspace: ({ emit, props, state }: Pick<ITagInputRenderlessParams, 'emit' | 'props' | 'state'>) => () => void;
68
+ declare const handleClear: ({ emit, props, state }: Pick<ITagInputRenderlessParams, 'emit' | 'props' | 'state'>) => () => void;
69
+ declare const handleMouseOver: ({ state }: Pick<ITagInputRenderlessParams, 'state'>) => (event: MouseEvent) => void;
70
+ declare const handleMouseLeave: ({ state }: Pick<ITagInputRenderlessParams, 'state'>) => () => void;
71
+ declare const handleInputFocus: ({ state }: Pick<ITagInputRenderlessParams, 'state'>) => () => void;
72
+ declare const handleInputBlur: ({ state }: Pick<ITagInputRenderlessParams, 'state'>) => () => void;
73
+ declare const handleDragStart: ({ state }: Pick<ITagInputRenderlessParams, 'state'>) => (index: number, event: DragEvent) => void;
74
+ declare const handleDragOver: () => (index: number, event: DragEvent) => void;
75
+ declare const handleDragEnter: ({ state, emit }: Pick<ITagInputRenderlessParams, 'state' | 'emit'>) => (index: number, event: DragEvent) => void;
76
+ declare const handleDrop: ({ emit, props, state }: Pick<ITagInputRenderlessParams, 'emit' | 'props' | 'state'>) => (index: number, event: DragEvent) => void;
77
+
78
+ interface ITagInputState {
79
+ currentValue: string;
80
+ tagList: string[];
81
+ disabled: boolean;
82
+ closeable: boolean;
83
+ showClearIcon: boolean;
84
+ showTagList: string[];
85
+ collapsedTagList: string[];
86
+ isHovering: boolean;
87
+ isFocused: boolean;
88
+ draggingIndex: null | number;
89
+ dragTargetIndex: null | number;
90
+ }
91
+ interface ITagInputApi {
92
+ state: ITagInputState;
93
+ addTag: ReturnType<typeof addTag>;
94
+ removeTag: ReturnType<typeof removeTag>;
95
+ handleBackspace: ReturnType<typeof handleBackspace>;
96
+ handleClear: ReturnType<typeof handleClear>;
97
+ handleMouseLeave: ReturnType<typeof handleMouseLeave>;
98
+ handleMouseOver: ReturnType<typeof handleMouseOver>;
99
+ handleInputBlur: ReturnType<typeof handleInputBlur>;
100
+ handleInputFocus: ReturnType<typeof handleInputFocus>;
101
+ handleDragStart: ReturnType<typeof handleDragStart>;
102
+ handleDragOver: ReturnType<typeof handleDragOver>;
103
+ handleDragEnter: ReturnType<typeof handleDragEnter>;
104
+ handleDrop: ReturnType<typeof handleDrop>;
105
+ }
106
+ type ITagInputProps = ExtractPropTypes<typeof tagInputProps>;
107
+ type ITagInputRenderlessParams = ISharedRenderlessFunctionParams<never> & {
108
+ state: ITagInputState;
109
+ props: ITagInputProps;
110
+ api: ITagInputApi;
111
+ };
112
+
113
+ export { ITagInputApi, ITagInputProps, ITagInputRenderlessParams, ITagInputState };
@@ -112,14 +112,14 @@ declare const getSourceData: ({ props, Tree }: Pick<ITransferRenderlessParams, "
112
112
  Tree: string;
113
113
  }) => () => unknown[];
114
114
  /** 返回右边的数据项 */
115
- declare const getTargetData: ({ props, state, Tree, Table }: Pick<ITransferRenderlessParams, "props" | "state"> & {
115
+ declare const getTargetData: ({ props, state, Tree, Table }: Pick<ITransferRenderlessParams, "state" | "props"> & {
116
116
  Tree: string;
117
117
  Table: string;
118
118
  }) => () => unknown;
119
119
  declare const onSourceCheckedChange: ({ emit, state }: Pick<ITransferRenderlessParams, 'emit' | 'state'>) => (val: string[], movedKeys: string[]) => void;
120
120
  declare const onTargetCheckedChange: ({ emit, state }: Pick<ITransferRenderlessParams, 'emit' | 'state'>) => (val: string[], movedKeys: string[]) => void;
121
121
  declare const addToLeft: ({ emit, props, state }: Pick<ITransferRenderlessParams, 'emit' | 'props' | 'state'>) => (value: undefined | 'all') => void;
122
- declare const addToRight: ({ emit, refs, props, state, Tree }: Pick<ITransferRenderlessParams, "emit" | "props" | "state" | "refs"> & {
122
+ declare const addToRight: ({ emit, refs, props, state, Tree }: Pick<ITransferRenderlessParams, "state" | "props" | "refs" | "emit"> & {
123
123
  Tree: string;
124
124
  }) => (value: undefined | 'all') => void;
125
125
  declare const clearQuery: (refs: ITransferRenderlessParams['refs']) => (which: 'left' | 'right') => void;
@@ -130,7 +130,7 @@ declare const logicFun: ({ props, emit, state, vm }: Pick<ITransferRenderlessPar
130
130
  pullMode?: "sort" | undefined;
131
131
  }) => void;
132
132
  /** 组件加载后,给左右面板初始化Sortable的功能 */
133
- declare const sortableEvent: ({ api, droppanel, props, queryDom, refs }: Pick<ITransferRenderlessParams, "props" | "api" | "refs"> & {
133
+ declare const sortableEvent: ({ api, droppanel, props, queryDom, refs }: Pick<ITransferRenderlessParams, "props" | "refs" | "api"> & {
134
134
  droppanel: string;
135
135
  queryDom: string;
136
136
  }) => () => void;
@@ -30,7 +30,7 @@ declare const treeMenuProps: {
30
30
  underlay: {
31
31
  type: ObjectConstructor;
32
32
  };
33
- }, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
33
+ }, () => _opentiny_vue_common.VNode<vue.RendererNode, vue.RendererElement, {
34
34
  [key: string]: any;
35
35
  }>, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<_opentiny_vue_common.ExtractPropTypes<{
36
36
  shape: {
@@ -1,6 +1,6 @@
1
1
  import { ExtractPropTypes } from 'vue';
2
2
  import { ISharedRenderlessParamUtils, ISharedRenderlessFunctionParams } from './shared.type.js';
3
- import { I as IFileUploadVm, a as IFileUploadConstants } from './upload-list.type-36a8374a.js';
3
+ import { I as IFileUploadVm, a as IFileUploadConstants } from './upload-list.type-d5ff675d.js';
4
4
 
5
5
  declare const UploadDraggerProps: {
6
6
  disabled: BooleanConstructor;
@@ -489,7 +489,7 @@ declare const sliceDownloadChunk: ({ state }: Pick<IFileUploadRenderlessParams,
489
489
  declare const batchSegmentDownload: ({ state, api }: Pick<IFileUploadRenderlessParams, 'state' | 'api'>) => ({ batchIndex, batches, docId, isBatch, isLessThan17G }: IFileUploadBatchSegmentDownload) => void;
490
490
  declare const downloadFileInner: ({ api, props, state }: Pick<IFileUploadRenderlessParams, 'api' | 'props' | 'state'>) => ({ batchIndex, file, range, isBatch, isChunk, isLessThan17G }: IFileUploadDownloadFileInner) => void;
491
491
  declare const afterDownload: ({ api, state }: Pick<IFileUploadRenderlessParams, 'api' | 'state'>) => ({ batchIndex, range, data, file, isBatch, isChunk, isLessThan17G }: IFileUploadAfterDownload) => void;
492
- declare const setWriterFile: ({ state, emit, Streamsaver }: Pick<IFileUploadRenderlessParams, "emit" | "state"> & {
492
+ declare const setWriterFile: ({ state, emit, Streamsaver }: Pick<IFileUploadRenderlessParams, "state" | "emit"> & {
493
493
  Streamsaver: IFileUploadStreamsaver;
494
494
  }) => ({ data, index, isLessThan17G, file }: IFileUploadSetWriterFile) => Function;
495
495
  declare const getFormData$1: ({ constants, props, state }: Pick<IFileUploadRenderlessParams, 'constants' | 'props' | 'state'>) => ({ formData, file, type }: IFileUploadGetFormData) => IUploadFormData;
@@ -1,3 +1,3 @@
1
1
  import 'vue';
2
- export { H as IUploadListApi, J as IUploadListProps, K as IUploadListRenderlessParamUtils, L as IUploadListRenderlessParams, G as IUploadListState, M as IUploadListVideoParam } from './upload-list.type-36a8374a.js';
2
+ export { H as IUploadListApi, J as IUploadListProps, K as IUploadListRenderlessParamUtils, L as IUploadListRenderlessParams, G as IUploadListState, M as IUploadListVideoParam } from './upload-list.type-d5ff675d.js';
3
3
  import './shared.type.js';
@@ -1,3 +1,3 @@
1
1
  import 'vue';
2
- export { d as IUploadApi, i as IUploadFormData, k as IUploadOptionsOfHwh5, j as IUploadOptionsOfPost, e as IUploadProps, h as IUploadRenderlessOtherParams, f as IUploadRenderlessParamUtils, g as IUploadRenderlessParams, c as IUploadState, b as IUploadStateHeader } from './upload-list.type-36a8374a.js';
2
+ export { d as IUploadApi, i as IUploadFormData, k as IUploadOptionsOfHwh5, j as IUploadOptionsOfPost, e as IUploadProps, h as IUploadRenderlessOtherParams, f as IUploadRenderlessParamUtils, g as IUploadRenderlessParams, c as IUploadState, b as IUploadStateHeader } from './upload-list.type-d5ff675d.js';
3
3
  import './shared.type.js';