@opentiny/vue-renderless 3.27.0 → 3.28.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 (48) hide show
  1. package/autocomplete/index.js +7 -2
  2. package/autocomplete/vue.js +1 -1
  3. package/base-select/index.js +189 -86
  4. package/base-select/vue.js +82 -20
  5. package/drawer/index.js +20 -0
  6. package/drawer/vue.js +9 -1
  7. package/dropdown/index.js +10 -4
  8. package/file-upload/index.js +18 -5
  9. package/form-item/index.js +28 -16
  10. package/form-item/vue.js +50 -11
  11. package/grid/static/array/eachTree.js +1 -0
  12. package/grid/utils/common.js +10 -3
  13. package/grid-select/index.js +418 -32
  14. package/grid-select/vue.js +103 -9
  15. package/guide/vue.js +11 -1
  16. package/package.json +3 -3
  17. package/picker/index.js +30 -13
  18. package/popover/index.js +1 -1
  19. package/rich-text/index.js +42 -0
  20. package/select/index.js +2 -2
  21. package/select/vue.js +2 -1
  22. package/select-dropdown/vue.js +8 -3
  23. package/select-wrapper/vue.js +134 -0
  24. package/switch/vue.js +19 -0
  25. package/tabs-mf/index.js +9 -1
  26. package/tabs-mf/vue-nav.js +66 -9
  27. package/tabs-mf/vue.js +21 -5
  28. package/transfer-panel/index.js +2 -1
  29. package/tree-select/index.js +13 -4
  30. package/tree-select/vue.js +19 -3
  31. package/types/autocomplete.type.d.ts +2 -1
  32. package/types/date-picker.type.d.ts +38 -2
  33. package/types/file-upload.type.d.ts +1 -1
  34. package/types/form-item.type.d.ts +1 -1
  35. package/types/{form.type-dd403065.d.ts → form.type-a54e1c06.d.ts} +2 -2
  36. package/types/form.type.d.ts +1 -1
  37. package/types/input.type.d.ts +1 -1
  38. package/types/modal.type.d.ts +4 -0
  39. package/types/picker.type.d.ts +38 -2
  40. package/types/popeditor.type.d.ts +76 -4
  41. package/types/popover.type.d.ts +1 -1
  42. package/types/switch.type.d.ts +1 -0
  43. package/types/transfer.type.d.ts +3 -3
  44. package/types/tree-menu.type.d.ts +38 -2
  45. package/types/upload-dragger.type.d.ts +1 -1
  46. package/types/{upload-list.type-36a8374a.d.ts → upload-list.type-d5ff675d.d.ts} +1 -1
  47. package/types/upload-list.type.d.ts +1 -1
  48. package/types/upload.type.d.ts +1 -1
@@ -104,9 +104,45 @@ declare const datePickerProps: {
104
104
  prefixIcon: ObjectConstructor;
105
105
  clearIcon: {
106
106
  type: ObjectConstructor;
107
- default(): vue.Raw<_opentiny_vue_common.DefineComponent<{}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
107
+ default(): vue.Raw<_opentiny_vue_common.DefineComponent<{
108
+ shape: {
109
+ type: StringConstructor;
110
+ default: string;
111
+ };
112
+ firstColor: {
113
+ type: StringConstructor;
114
+ default: string;
115
+ };
116
+ secondColor: {
117
+ type: StringConstructor;
118
+ default: string;
119
+ };
120
+ underlay: {
121
+ type: ObjectConstructor;
122
+ };
123
+ }, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
108
124
  [key: string]: any;
109
- }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<_opentiny_vue_common.ExtractPropTypes<{}>>, {}, {}>>;
125
+ }>, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<_opentiny_vue_common.ExtractPropTypes<{
126
+ shape: {
127
+ type: StringConstructor;
128
+ default: string;
129
+ };
130
+ firstColor: {
131
+ type: StringConstructor;
132
+ default: string;
133
+ };
134
+ secondColor: {
135
+ type: StringConstructor;
136
+ default: string;
137
+ };
138
+ underlay: {
139
+ type: ObjectConstructor;
140
+ };
141
+ }>>, {
142
+ shape: string;
143
+ firstColor: string;
144
+ secondColor: string;
145
+ }, {}>>;
110
146
  };
111
147
  name: {
112
148
  default: string;
@@ -1,3 +1,3 @@
1
1
  import 'vue';
2
- export { C as IFileUploadAfterDownload, m as IFileUploadApi, D as IFileUploadBatchSegmentDownload, y as IFileUploadBatchSegmentUpload, a as IFileUploadConstants, w as IFileUploadDownloadFileInner, x as IFileUploadDownloadFileSingle, u as IFileUploadDownloadFileSingleInner, t as IFileUploadEdmDownload, s as IFileUploadFile, A as IFileUploadGetFormData, v as IFileUploadLargeDocumentDownload, r as IFileUploadModalVm, o as IFileUploadProps, p as IFileUploadRenderlessParamUtils, q as IFileUploadRenderlessParams, z as IFileUploadSegmentUploadInner, n as IFileUploadService, B as IFileUploadSetWriterFile, E as IFileUploadSliceDownloadChunk, l as IFileUploadState, F as IFileUploadStreamsaver, I as IFileUploadVm } from './upload-list.type-36a8374a.js';
2
+ export { C as IFileUploadAfterDownload, m as IFileUploadApi, D as IFileUploadBatchSegmentDownload, y as IFileUploadBatchSegmentUpload, a as IFileUploadConstants, w as IFileUploadDownloadFileInner, x as IFileUploadDownloadFileSingle, u as IFileUploadDownloadFileSingleInner, t as IFileUploadEdmDownload, s as IFileUploadFile, A as IFileUploadGetFormData, v as IFileUploadLargeDocumentDownload, r as IFileUploadModalVm, o as IFileUploadProps, p as IFileUploadRenderlessParamUtils, q as IFileUploadRenderlessParams, z as IFileUploadSegmentUploadInner, n as IFileUploadService, B as IFileUploadSetWriterFile, E as IFileUploadSliceDownloadChunk, l as IFileUploadState, F as IFileUploadStreamsaver, I as IFileUploadVm } from './upload-list.type-d5ff675d.js';
3
3
  import './shared.type.js';
@@ -1,3 +1,3 @@
1
1
  import 'vue';
2
- export { i as IFormItemApi, f as IFormItemConstants, I as IFormItemDisplayedValueParam, k as IFormItemInstance, c as IFormItemLabelStyle, g as IFormItemProps, j as IFormItemRenderlessParamUtils, h as IFormItemRenderlessParams, d as IFormItemRule, e as IFormItemState, b as IFormItemTrigger, a as IFormItemValidateStatus } from './form.type-dd403065.js';
2
+ export { i as IFormItemApi, f as IFormItemConstants, I as IFormItemDisplayedValueParam, k as IFormItemInstance, c as IFormItemLabelStyle, g as IFormItemProps, j as IFormItemRenderlessParamUtils, h as IFormItemRenderlessParams, d as IFormItemRule, e as IFormItemState, b as IFormItemTrigger, a as IFormItemValidateStatus } from './form.type-a54e1c06.js';
3
3
  import './shared.type.js';
@@ -269,12 +269,12 @@ interface IFormItemState {
269
269
  isBasicComp: boolean;
270
270
  showTooltip: boolean;
271
271
  typeName: string;
272
- formInstance: IFormInstance;
272
+ formInstance: IFormInstance | undefined;
273
273
  labelFor: string;
274
274
  labelStyle: IFormItemLabelStyle;
275
275
  valueStyle: StyleValue;
276
276
  contentStyle: StyleValue;
277
- form: IFormInstance;
277
+ form: IFormInstance | undefined;
278
278
  fieldValue: any;
279
279
  isRequired: boolean;
280
280
  formInline: boolean | undefined;
@@ -1,3 +1,3 @@
1
1
  import 'vue';
2
- export { p as IFormApi, r as IFormInstance, n as IFormProps, q as IFormRenderlessParamUtils, o as IFormRenderlessParams, l as IFormRules, m as IFormState } from './form.type-dd403065.js';
2
+ export { p as IFormApi, r as IFormInstance, n as IFormProps, q as IFormRenderlessParamUtils, o as IFormRenderlessParams, l as IFormRules, m as IFormState } from './form.type-a54e1c06.js';
3
3
  import './shared.type.js';
@@ -248,7 +248,7 @@ declare const calculateNodeStyling: () => (targetElement: HTMLElement) => {
248
248
  borderSize: number;
249
249
  boxSizing: string;
250
250
  };
251
- declare const calcTextareaHeight: ({ api, hiddenTextarea, props, state, mode, constants }: Pick<IInputRenderlessParams, "mode" | "props" | "state" | "api" | "constants"> & {
251
+ declare const calcTextareaHeight: ({ api, hiddenTextarea, props, state, mode, constants }: Pick<IInputRenderlessParams, "state" | "props" | "mode" | "api" | "constants"> & {
252
252
  hiddenTextarea: HTMLTextAreaElement | null;
253
253
  }) => (targetElement: HTMLTextAreaElement, minRows?: number, maxRows?: null) => {
254
254
  minHeight?: string | undefined;
@@ -142,6 +142,10 @@ declare const modalProps: {
142
142
  type: ObjectConstructor;
143
143
  default: () => {};
144
144
  };
145
+ headerDragable: {
146
+ type: BooleanConstructor;
147
+ default: boolean;
148
+ };
145
149
  footerDragable: BooleanConstructor;
146
150
  tiny_theme: StringConstructor;
147
151
  slots: ObjectConstructor;
@@ -31,9 +31,45 @@ declare const pickerProps: {
31
31
  tip: StringConstructor;
32
32
  clearIcon: {
33
33
  type: ObjectConstructor;
34
- default(): vue.Raw<vue.DefineComponent<{}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
34
+ default(): vue.Raw<vue.DefineComponent<{
35
+ shape: {
36
+ type: StringConstructor;
37
+ default: string;
38
+ };
39
+ firstColor: {
40
+ type: StringConstructor;
41
+ default: string;
42
+ };
43
+ secondColor: {
44
+ type: StringConstructor;
45
+ default: string;
46
+ };
47
+ underlay: {
48
+ type: ObjectConstructor;
49
+ };
50
+ }, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
35
51
  [key: string]: any;
36
- }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{}>>, {}, {}>>;
52
+ }>, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
53
+ shape: {
54
+ type: StringConstructor;
55
+ default: string;
56
+ };
57
+ firstColor: {
58
+ type: StringConstructor;
59
+ default: string;
60
+ };
61
+ secondColor: {
62
+ type: StringConstructor;
63
+ default: string;
64
+ };
65
+ underlay: {
66
+ type: ObjectConstructor;
67
+ };
68
+ }>>, {
69
+ shape: string;
70
+ firstColor: string;
71
+ secondColor: string;
72
+ }, {}>>;
37
73
  };
38
74
  name: {
39
75
  default: string;
@@ -78,15 +78,87 @@ declare const popeditorProps: {
78
78
  };
79
79
  icon: {
80
80
  type: ObjectConstructor;
81
- default(): vue.Raw<_opentiny_vue_common.DefineComponent<{}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
81
+ default(): vue.Raw<_opentiny_vue_common.DefineComponent<{
82
+ shape: {
83
+ type: StringConstructor;
84
+ default: string;
85
+ };
86
+ firstColor: {
87
+ type: StringConstructor;
88
+ default: string;
89
+ };
90
+ secondColor: {
91
+ type: StringConstructor;
92
+ default: string;
93
+ };
94
+ underlay: {
95
+ type: ObjectConstructor;
96
+ };
97
+ }, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
82
98
  [key: string]: any;
83
- }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<_opentiny_vue_common.ExtractPropTypes<{}>>, {}, {}>>;
99
+ }>, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<_opentiny_vue_common.ExtractPropTypes<{
100
+ shape: {
101
+ type: StringConstructor;
102
+ default: string;
103
+ };
104
+ firstColor: {
105
+ type: StringConstructor;
106
+ default: string;
107
+ };
108
+ secondColor: {
109
+ type: StringConstructor;
110
+ default: string;
111
+ };
112
+ underlay: {
113
+ type: ObjectConstructor;
114
+ };
115
+ }>>, {
116
+ shape: string;
117
+ firstColor: string;
118
+ secondColor: string;
119
+ }, {}>>;
84
120
  };
85
121
  iconSearch: {
86
122
  type: ObjectConstructor;
87
- default(): vue.Raw<_opentiny_vue_common.DefineComponent<{}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
123
+ default(): vue.Raw<_opentiny_vue_common.DefineComponent<{
124
+ shape: {
125
+ type: StringConstructor;
126
+ default: string;
127
+ };
128
+ firstColor: {
129
+ type: StringConstructor;
130
+ default: string;
131
+ };
132
+ secondColor: {
133
+ type: StringConstructor;
134
+ default: string;
135
+ };
136
+ underlay: {
137
+ type: ObjectConstructor;
138
+ };
139
+ }, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
88
140
  [key: string]: any;
89
- }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<_opentiny_vue_common.ExtractPropTypes<{}>>, {}, {}>>;
141
+ }>, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<_opentiny_vue_common.ExtractPropTypes<{
142
+ shape: {
143
+ type: StringConstructor;
144
+ default: string;
145
+ };
146
+ firstColor: {
147
+ type: StringConstructor;
148
+ default: string;
149
+ };
150
+ secondColor: {
151
+ type: StringConstructor;
152
+ default: string;
153
+ };
154
+ underlay: {
155
+ type: ObjectConstructor;
156
+ };
157
+ }>>, {
158
+ shape: string;
159
+ firstColor: string;
160
+ secondColor: string;
161
+ }, {}>>;
90
162
  };
91
163
  title: {
92
164
  type: StringConstructor;
@@ -93,7 +93,7 @@ declare const popoverProps: {
93
93
  *
94
94
  */
95
95
 
96
- declare const mounted: ({ api, state, constants, props, nextTick, mode }: Pick<IPopoverRenderlessParams, "mode" | "props" | "state" | "api" | "nextTick"> & {
96
+ declare const mounted: ({ api, state, constants, props, nextTick, mode }: Pick<IPopoverRenderlessParams, "state" | "props" | "nextTick" | "mode" | "api"> & {
97
97
  constants: {
98
98
  IDPREFIX: string;
99
99
  };
@@ -60,6 +60,7 @@ declare const switchProps: {
60
60
  type: BooleanConstructor;
61
61
  default: boolean;
62
62
  };
63
+ width: (StringConstructor | NumberConstructor)[];
63
64
  tiny_mode: StringConstructor;
64
65
  tiny_mode_root: BooleanConstructor;
65
66
  tiny_template: (FunctionConstructor | ObjectConstructor)[];
@@ -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;
@@ -14,9 +14,45 @@ declare const treeMenuProps: {
14
14
  suffixIcon: ObjectConstructor;
15
15
  searchIcon: {
16
16
  type: ObjectConstructor;
17
- default: () => vue.Raw<_opentiny_vue_common.DefineComponent<{}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
17
+ default: () => vue.Raw<_opentiny_vue_common.DefineComponent<{
18
+ shape: {
19
+ type: StringConstructor;
20
+ default: string;
21
+ };
22
+ firstColor: {
23
+ type: StringConstructor;
24
+ default: string;
25
+ };
26
+ secondColor: {
27
+ type: StringConstructor;
28
+ default: string;
29
+ };
30
+ underlay: {
31
+ type: ObjectConstructor;
32
+ };
33
+ }, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
18
34
  [key: string]: any;
19
- }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<_opentiny_vue_common.ExtractPropTypes<{}>>, {}, {}>>;
35
+ }>, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<_opentiny_vue_common.ExtractPropTypes<{
36
+ shape: {
37
+ type: StringConstructor;
38
+ default: string;
39
+ };
40
+ firstColor: {
41
+ type: StringConstructor;
42
+ default: string;
43
+ };
44
+ secondColor: {
45
+ type: StringConstructor;
46
+ default: string;
47
+ };
48
+ underlay: {
49
+ type: ObjectConstructor;
50
+ };
51
+ }>>, {
52
+ shape: string;
53
+ firstColor: string;
54
+ secondColor: string;
55
+ }, {}>>;
20
56
  };
21
57
  props: ObjectConstructor;
22
58
  draggable: {
@@ -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';