@opentiny/vue-renderless 3.17.6 → 3.18.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 (84) hide show
  1. package/README.md +12 -3
  2. package/anchor/index.js +6 -2
  3. package/autocomplete/index.js +12 -11
  4. package/autocomplete/vue.js +35 -7
  5. package/collapse-item/index.js +7 -1
  6. package/collapse-item/vue.js +12 -2
  7. package/color-picker/index.js +20 -32
  8. package/color-picker/vue.js +31 -54
  9. package/color-select-panel/index.js +8 -5
  10. package/color-select-panel/vue.js +1 -2
  11. package/common/deps/clickoutside.js +10 -3
  12. package/common/deps/tree-model/tree-store.js +13 -2
  13. package/common/deps/useRelation.js +24 -7
  14. package/common/form/const.js +10 -0
  15. package/common/index.js +1 -1
  16. package/common/runtime.js +1 -1
  17. package/dialog-box/index.js +1 -1
  18. package/dialog-select/index.js +40 -13
  19. package/dialog-select/vue.js +3 -3
  20. package/dropdown-item/mf.js +1 -1
  21. package/dropdown-menu/index.js +3 -0
  22. package/dropdown-menu/vue.js +5 -3
  23. package/file-upload/index.js +4 -4
  24. package/fluent-editor/index.js +10 -3
  25. package/fluent-editor/options.js +32 -2
  26. package/fluent-editor/vue.js +8 -8
  27. package/form-item/index.js +6 -1
  28. package/form-item/vue.js +3 -1
  29. package/guide/index.js +4 -4
  30. package/input/index.js +15 -0
  31. package/input/vue.js +11 -4
  32. package/nav-menu/index.js +7 -3
  33. package/option/index.js +0 -15
  34. package/option/vue.js +2 -13
  35. package/package.json +1 -1
  36. package/pager-item/index.js +4 -7
  37. package/picker/index.js +27 -7
  38. package/picker/vue.js +2 -1
  39. package/pop-upload/index.js +13 -4
  40. package/pop-upload/vue.js +4 -0
  41. package/popeditor/index.js +2 -1
  42. package/rich-text-editor/vue.js +9 -3
  43. package/select/index.js +6 -5
  44. package/select/vue.js +12 -4
  45. package/slider-button/index.js +8 -3
  46. package/slider-button/vue.js +6 -2
  47. package/slider-button-group/index.js +46 -9
  48. package/slider-button-group/vue.js +39 -18
  49. package/tab-item-mf/vue.js +6 -1
  50. package/tabs-mf/index.js +58 -3
  51. package/tabs-mf/vue-bar.js +0 -6
  52. package/tabs-mf/vue-swipe.js +20 -0
  53. package/tabs-mf/vue.js +22 -4
  54. package/time/index.js +6 -1
  55. package/time/vue.js +7 -2
  56. package/time-line/index.js +1 -1
  57. package/time-line-new/index.js +53 -0
  58. package/time-line-new/vue.js +41 -0
  59. package/time-spinner/index.js +1 -1
  60. package/time-spinner/vue.js +2 -2
  61. package/tooltip/vue.js +16 -3
  62. package/tree/index.js +1 -0
  63. package/tree/vue.js +4 -1
  64. package/tree-select/index.js +6 -6
  65. package/tree-select/vue.js +1 -1
  66. package/types/autocomplete.type.d.ts +16 -12
  67. package/types/button.type.d.ts +22 -1
  68. package/types/checkbox.type.d.ts +1 -0
  69. package/types/dropdown.type.d.ts +4 -0
  70. package/types/file-upload.type.d.ts +1 -1
  71. package/types/form-item.type.d.ts +1 -1
  72. package/types/{form.type-33aa784a.d.ts → form.type-f6fb4c38.d.ts} +5 -0
  73. package/types/form.type.d.ts +1 -1
  74. package/types/input.type.d.ts +6 -2
  75. package/types/link.type.d.ts +6 -1
  76. package/types/popover.type.d.ts +1 -1
  77. package/types/search.type.d.ts +7 -0
  78. package/types/transfer.type.d.ts +3 -3
  79. package/types/tree-menu.type.d.ts +0 -1
  80. package/types/upload-dragger.type.d.ts +1 -1
  81. package/types/{upload-list.type-02a1effb.d.ts → upload-list.type-2f4ec243.d.ts} +9 -3
  82. package/types/upload-list.type.d.ts +1 -1
  83. package/types/upload.type.d.ts +1 -1
  84. package/types/user-head.type.d.ts +4 -1
@@ -76,8 +76,15 @@ declare const searchProps: {
76
76
  };
77
77
  typeValue: ObjectConstructor;
78
78
  suffixIcon: (StringConstructor | ObjectConstructor)[];
79
+ disabled: {
80
+ type: BooleanConstructor;
81
+ default: boolean;
82
+ };
79
83
  tiny_mode: StringConstructor;
80
84
  tiny_mode_root: BooleanConstructor;
85
+ /**
86
+ * 配置主题色,primary:蓝 gray:灰
87
+ */
81
88
  tiny_template: (FunctionConstructor | ObjectConstructor)[];
82
89
  tiny_renderless: FunctionConstructor;
83
90
  tiny_theme: StringConstructor;
@@ -108,14 +108,14 @@ declare const getSourceData: ({ props, Tree }: Pick<ITransferRenderlessParams, "
108
108
  Tree: string;
109
109
  }) => () => unknown[];
110
110
  /** 返回右边的数据项 */
111
- declare const getTargetData: ({ props, state, Tree, Table }: Pick<ITransferRenderlessParams, "props" | "state"> & {
111
+ declare const getTargetData: ({ props, state, Tree, Table }: Pick<ITransferRenderlessParams, "state" | "props"> & {
112
112
  Tree: string;
113
113
  Table: string;
114
114
  }) => () => unknown;
115
115
  declare const onSourceCheckedChange: ({ emit, state }: Pick<ITransferRenderlessParams, 'emit' | 'state'>) => (val: string[], movedKeys: string[]) => void;
116
116
  declare const onTargetCheckedChange: ({ emit, state }: Pick<ITransferRenderlessParams, 'emit' | 'state'>) => (val: string[], movedKeys: string[]) => void;
117
117
  declare const addToLeft: ({ emit, props, state }: Pick<ITransferRenderlessParams, 'emit' | 'props' | 'state'>) => (value: undefined | 'all') => void;
118
- declare const addToRight: ({ emit, refs, props, state, Tree }: Pick<ITransferRenderlessParams, "emit" | "props" | "state" | "refs"> & {
118
+ declare const addToRight: ({ emit, refs, props, state, Tree }: Pick<ITransferRenderlessParams, "state" | "props" | "refs" | "emit"> & {
119
119
  Tree: string;
120
120
  }) => (value: undefined | 'all') => void;
121
121
  declare const clearQuery: (refs: ITransferRenderlessParams['refs']) => (which: 'left' | 'right') => void;
@@ -126,7 +126,7 @@ declare const logicFun: ({ props, emit, state }: Pick<ITransferRenderlessParams,
126
126
  pullMode?: "sort" | undefined;
127
127
  }) => void;
128
128
  /** 组件加载后,给左右面板初始化Sortable的功能 */
129
- declare const sortableEvent: ({ api, droppanel, props, queryDom, refs }: Pick<ITransferRenderlessParams, "props" | "api" | "refs"> & {
129
+ declare const sortableEvent: ({ api, droppanel, props, queryDom, refs }: Pick<ITransferRenderlessParams, "props" | "refs" | "api"> & {
130
130
  droppanel: string;
131
131
  queryDom: string;
132
132
  }) => () => void;
@@ -12,7 +12,6 @@ declare const treeMenuProps: {
12
12
  nodeKey: StringConstructor;
13
13
  defaultExpandAll: BooleanConstructor;
14
14
  suffixIcon: ObjectConstructor;
15
- prefixIcon: ObjectConstructor;
16
15
  searchIcon: {
17
16
  type: ObjectConstructor;
18
17
  default: () => vue.Raw<_opentiny_vue_common.DefineComponent<{}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
@@ -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-02a1effb.js';
3
+ import { I as IFileUploadVm, a as IFileUploadConstants } from './upload-list.type-2f4ec243.js';
4
4
 
5
5
  declare const UploadDraggerProps: {
6
6
  disabled: BooleanConstructor;
@@ -11,6 +11,7 @@ declare const $constants: {
11
11
  COMMA: string;
12
12
  FILE_NOT_LESS_THAN: string;
13
13
  FILE_NOT_MORE_THAN: string;
14
+ FILE_SIZE_RANGE: string;
14
15
  NUMBER_LIMIT: string;
15
16
  FILE_STATUS: {
16
17
  READY: string;
@@ -111,6 +112,7 @@ declare const fileUploadProps: {
111
112
  COMMA: string;
112
113
  FILE_NOT_LESS_THAN: string;
113
114
  FILE_NOT_MORE_THAN: string;
115
+ FILE_SIZE_RANGE: string;
114
116
  NUMBER_LIMIT: string;
115
117
  FILE_STATUS: {
116
118
  READY: string;
@@ -404,7 +406,7 @@ declare const beforeUpload: ({ props, api, Modal, constants, t, state }: Pick<IF
404
406
  declare const startUpload: ({ state, constants, vm, Modal, api, t }: Pick<IFileUploadRenderlessParams, 'state' | 'constants' | 'vm' | 'api' | 't'> & IFileUploadModalVm) => (file: IFileUploadFile, isList: boolean) => void;
405
407
  declare const properFileSize: ({ props, state, api, constants, Modal, t }: Pick<IFileUploadRenderlessParams, 'props' | 'state' | 'constants' | 'api' | 't'> & IFileUploadModalVm) => (file: IFileUploadFile) => boolean;
406
408
  declare const addFileToList: ({ api, constants, emit, props, state, mode }: Pick<IFileUploadRenderlessParams, 'api' | 'constants' | 'emit' | 'props' | 'state' | 'mode'>) => (rawFile: IFileUploadFile, updateId: string, reUpload: boolean) => void;
407
- declare const getFileHash: ({ emit, Modal, constants, t, CryptoJS, state }: Pick<IFileUploadRenderlessParams, "emit" | "state" | "t" | "constants"> & IFileUploadModalVm & {
409
+ declare const getFileHash: ({ emit, Modal, constants, t, CryptoJS, state }: Pick<IFileUploadRenderlessParams, "state" | "emit" | "t" | "constants"> & IFileUploadModalVm & {
408
410
  CryptoJS: object;
409
411
  }) => ({ file, chunkSize, showTips }: {
410
412
  file: IFileUploadFile;
@@ -484,13 +486,13 @@ declare const sliceDownloadChunk: ({ state }: Pick<IFileUploadRenderlessParams,
484
486
  declare const batchSegmentDownload: ({ state, api }: Pick<IFileUploadRenderlessParams, 'state' | 'api'>) => ({ batchIndex, batches, docId, isBatch, isLessThan17G }: IFileUploadBatchSegmentDownload) => void;
485
487
  declare const downloadFileInner: ({ api, props, state }: Pick<IFileUploadRenderlessParams, 'api' | 'props' | 'state'>) => ({ batchIndex, file, range, isBatch, isChunk, isLessThan17G }: IFileUploadDownloadFileInner) => void;
486
488
  declare const afterDownload: ({ api, state }: Pick<IFileUploadRenderlessParams, 'api' | 'state'>) => ({ batchIndex, range, data, file, isBatch, isChunk, isLessThan17G }: IFileUploadAfterDownload) => void;
487
- declare const setWriterFile: ({ state, emit, Streamsaver }: Pick<IFileUploadRenderlessParams, "emit" | "state"> & {
489
+ declare const setWriterFile: ({ state, emit, Streamsaver }: Pick<IFileUploadRenderlessParams, "state" | "emit"> & {
488
490
  Streamsaver: IFileUploadStreamsaver;
489
491
  }) => ({ data, index, isLessThan17G, file }: IFileUploadSetWriterFile) => Function;
490
492
  declare const getFormData$1: ({ constants, props, state }: Pick<IFileUploadRenderlessParams, 'constants' | 'props' | 'state'>) => ({ formData, file, type }: IFileUploadGetFormData) => IUploadFormData;
491
493
  declare const largeDocumentUpload: ({ api, Modal, state, t, emit, constants }: Pick<IFileUploadRenderlessParams, 'api' | 'state' | 't' | 'emit' | 'constants'> & IFileUploadModalVm) => (file: IFileUploadFile) => void;
492
494
  declare const segmentUploadInit: ({ api, props, service, state, constants }: Pick<IFileUploadRenderlessParams, 'api' | 'props' | 'service' | 'state' | 'constants'>) => (file: IFileUploadFile) => Promise<unknown>;
493
- declare const segmentUpload: ({ api, props, service, state, emit, constants, CryptoJS }: Pick<IFileUploadRenderlessParams, "emit" | "props" | "state" | "api" | "constants" | "service"> & {
495
+ declare const segmentUpload: ({ api, props, service, state, emit, constants, CryptoJS }: Pick<IFileUploadRenderlessParams, "state" | "props" | "emit" | "api" | "constants" | "service"> & {
494
496
  CryptoJS: object;
495
497
  }) => (batchIndex: number, file: IFileUploadFile, progress: {
496
498
  file: IFileUploadFile;
@@ -677,6 +679,10 @@ declare const uploadProps: {
677
679
  type: BooleanConstructor;
678
680
  default: boolean;
679
681
  };
682
+ tipMessage: {
683
+ type: StringConstructor;
684
+ default: string;
685
+ };
680
686
  tiny_mode: StringConstructor;
681
687
  tiny_mode_root: BooleanConstructor;
682
688
  tiny_template: (FunctionConstructor | ObjectConstructor)[];
@@ -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-02a1effb.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-2f4ec243.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-02a1effb.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-2f4ec243.js';
3
3
  import './shared.type.js';
@@ -83,7 +83,10 @@ declare const userHeadProps: {
83
83
  tiny_mode: StringConstructor;
84
84
  tiny_mode_root: BooleanConstructor;
85
85
  tiny_template: (FunctionConstructor | ObjectConstructor)[];
86
- tiny_renderless: FunctionConstructor;
86
+ tiny_renderless: FunctionConstructor; /**
87
+ * @property {String} - 头像资源
88
+ * type=icon 时为图标类名,type=label时为字体串,type=image时为资源路径
89
+ */
87
90
  tiny_theme: StringConstructor;
88
91
  tiny_chart_theme: ObjectConstructor;
89
92
  };