@opentiny/vue-renderless 3.14.1 → 3.15.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 (88) hide show
  1. package/LICENSE +22 -0
  2. package/action-menu/index.js +44 -0
  3. package/action-menu/vue.js +25 -8
  4. package/calendar-view/index.js +21 -13
  5. package/calendar-view/vue.js +6 -3
  6. package/cascader/index.js +1 -1
  7. package/cascader-select/index.js +5 -0
  8. package/cascader-select/vue.js +3 -1
  9. package/common/deps/vue-popper.js +22 -2
  10. package/common/index.js +15 -2
  11. package/common/runtime.js +1 -1
  12. package/dept/index.js +8 -1
  13. package/dept/vue.js +10 -1
  14. package/dialog-box/index.js +12 -6
  15. package/dialog-box/vue.js +1 -1
  16. package/dropdown-item/mf.js +2 -2
  17. package/file-upload/index.js +0 -1
  18. package/grid/utils/dom.js +30 -10
  19. package/image/index.js +4 -0
  20. package/image/vue.js +6 -3
  21. package/image-viewer/vue.js +3 -1
  22. package/input/index.js +6 -1
  23. package/input/vue.js +9 -5
  24. package/modal/index.js +1 -1
  25. package/numeric/index.js +5 -18
  26. package/numeric/vue.js +3 -12
  27. package/option-group/index.js +13 -0
  28. package/option-group/vue.js +19 -6
  29. package/package.json +7 -7
  30. package/picker/index.js +27 -6
  31. package/picker/vue.js +2 -2
  32. package/popconfirm/index.js +6 -0
  33. package/popconfirm/vue.js +11 -3
  34. package/popover/index.js +4 -1
  35. package/popover/vue.js +2 -1
  36. package/quarter-panel/index.js +61 -0
  37. package/quarter-panel/vue.js +46 -0
  38. package/select/index.js +99 -30
  39. package/select/vue.js +26 -12
  40. package/skeleton/vue.js +2 -2
  41. package/skeleton-item/vue.js +1 -1
  42. package/statistic/index.js +22 -0
  43. package/statistic/vue.js +20 -0
  44. package/tabs/index.js +16 -1
  45. package/tall-storage/index.js +1 -1
  46. package/time-picker-mobile/index.js +10 -1
  47. package/time-picker-mobile/vue.js +5 -3
  48. package/time-spinner/index.js +52 -1
  49. package/time-spinner/vue.js +4 -2
  50. package/timeline-item/index.js +14 -1
  51. package/timeline-item/vue.js +7 -4
  52. package/tree/index.js +8 -4
  53. package/tree/vue.js +3 -3
  54. package/tree-node/index.js +2 -2
  55. package/types/action-menu.type.d.ts +40 -12
  56. package/types/date-table.type.d.ts +13 -0
  57. package/types/dialog-box.type.d.ts +1 -1
  58. package/types/{dropdown-item.type-8475a549.d.ts → dropdown-item.type-678794c9.d.ts} +4 -0
  59. package/types/dropdown-item.type.d.ts +1 -1
  60. package/types/dropdown-menu.type.d.ts +1 -1
  61. package/types/file-upload.type.d.ts +1 -1
  62. package/types/form-item.type.d.ts +1 -1
  63. package/types/{form.type-a2dc0099.d.ts → form.type-8e30b25c.d.ts} +1 -0
  64. package/types/form.type.d.ts +1 -1
  65. package/types/image.type.d.ts +4 -0
  66. package/types/input.type.d.ts +3 -1
  67. package/types/numeric.type.d.ts +4 -5
  68. package/types/popconfirm.type.d.ts +8 -0
  69. package/types/popover.type.d.ts +2 -2
  70. package/types/skeleton.type.d.ts +1 -1
  71. package/types/statistic.type.d.ts +56 -0
  72. package/types/tag.type.d.ts +4 -1
  73. package/types/{time-line.type-b155cb4f.d.ts → time-line.type-1b501c41.d.ts} +7 -0
  74. package/types/time-line.type.d.ts +1 -1
  75. package/types/timeline-item.type.d.ts +1 -1
  76. package/types/transfer.type.d.ts +3 -3
  77. package/types/upload-dragger.type.d.ts +1 -1
  78. package/types/{upload-list.type-6d6e3d0e.d.ts → upload-list.type-f34997c8.d.ts} +3 -3
  79. package/types/upload-list.type.d.ts +1 -1
  80. package/types/upload.type.d.ts +1 -1
  81. package/credit-card/index.js +0 -93
  82. package/credit-card/vue.js +0 -62
  83. package/credit-card-form/index.js +0 -112
  84. package/credit-card-form/vue.js +0 -119
  85. package/detail-page/index.js +0 -79
  86. package/detail-page/vue.js +0 -78
  87. package/slide-bar/index.js +0 -67
  88. package/slide-bar/vue.js +0 -32
@@ -8,10 +8,11 @@ import {
8
8
  computedCurrent,
9
9
  computedIsReverse,
10
10
  computedWidth,
11
- computedItemStyle
11
+ computedItemStyle,
12
+ computedIconClass
12
13
  } from "./index";
13
14
  const api = ["state", "handleClick", "getStatusCls", "getStatus", "getDate", "rootProps"];
14
- const renderless = (props, { computed, reactive, inject }, { t, emit, constants, designConfig }) => {
15
+ const renderless = (props, { computed, reactive, inject }, { t, emit, constants }) => {
15
16
  const api2 = {};
16
17
  const { timelineItems, nodes, props: rootProps } = inject("nodesInject");
17
18
  timelineItems.push(props.node);
@@ -22,7 +23,8 @@ const renderless = (props, { computed, reactive, inject }, { t, emit, constants,
22
23
  computedSpace: computed(() => api2.computedWidth(props.space || api2.rootProps.space)),
23
24
  computedItemCls: computed(() => api2.computedItemCls()),
24
25
  computedItemStyle: computed(() => api2.computedItemStyle()),
25
- computedLineWidth: computed(() => api2.computedWidth(props.lineWidth || api2.rootProps.lineWidth))
26
+ computedLineWidth: computed(() => api2.computedWidth(props.lineWidth || api2.rootProps.lineWidth)),
27
+ iconClass: computed(() => api2.computedIconClass())
26
28
  });
27
29
  Object.assign(api2, {
28
30
  state,
@@ -35,7 +37,8 @@ const renderless = (props, { computed, reactive, inject }, { t, emit, constants,
35
37
  computedWidth: computedWidth(),
36
38
  getStatus: getStatus({ state, t }),
37
39
  handleClick: handleClick({ emit, state }),
38
- getStatusCls: getStatusCls({ constants, state })
40
+ getStatusCls: getStatusCls({ constants, state }),
41
+ computedIconClass: computedIconClass({ props, api: api2 })
39
42
  });
40
43
  return api2;
41
44
  };
package/tree/index.js CHANGED
@@ -333,11 +333,15 @@ const setCheckedNodes = ({ props, state }) => (nodes, leafOnly) => {
333
333
  }
334
334
  state.store.setCheckedNodes(nodes, leafOnly);
335
335
  };
336
- const setCheckedKeys = ({ props, state }) => (keys, leafOnly) => {
336
+ const setCheckedKeys = ({ props, state, api }) => (keys, leafOnly) => {
337
337
  if (!props.nodeKey) {
338
338
  throw new Error("[Tree] nodeKey is required in setCheckedKeys");
339
339
  }
340
- state.store.setCheckedKeys(keys, leafOnly);
340
+ if (props.showRadio) {
341
+ api.setCurrentRadio(keys);
342
+ } else {
343
+ state.store.setCheckedKeys(keys, leafOnly);
344
+ }
341
345
  };
342
346
  const setChecked = (state) => (data, checked, deep) => {
343
347
  state.store.setChecked(data, checked, deep);
@@ -451,7 +455,7 @@ const init = ({ state, nodeKey, checkedKey }) => {
451
455
  }
452
456
  }
453
457
  };
454
- const setCurrentRadio = ({ props, state }) => () => {
458
+ const setCurrentRadio = ({ props, state }) => (paramCheckedKey) => {
455
459
  if (!props.showRadio) {
456
460
  return;
457
461
  }
@@ -459,7 +463,7 @@ const setCurrentRadio = ({ props, state }) => () => {
459
463
  throw new Error("[Tree] nodeKey is required in setCurrentRadio");
460
464
  }
461
465
  const nodeKey = props.nodeKey;
462
- const defaultCheckedKeys = props.defaultCheckedKeys || [];
466
+ const defaultCheckedKeys = props.defaultCheckedKeys || paramCheckedKey || [];
463
467
  const checkedKey = defaultCheckedKeys.length ? defaultCheckedKeys[0] : null;
464
468
  if (!checkedKey) {
465
469
  return;
package/tree/vue.js CHANGED
@@ -164,7 +164,7 @@ const initState = ({ reactive, emitter, props, computed, api: api2 }) => {
164
164
  });
165
165
  return state;
166
166
  };
167
- const initApi = ({ state, dispatch, broadcast, props, vm, constants, t, emit }) => ({
167
+ const initApi = ({ state, dispatch, broadcast, props, vm, constants, t, emit, api: api2 }) => ({
168
168
  state,
169
169
  dispatch,
170
170
  broadcast,
@@ -184,7 +184,7 @@ const initApi = ({ state, dispatch, broadcast, props, vm, constants, t, emit })
184
184
  getCheckedKeys: getCheckedKeys(state),
185
185
  getCurrentNode: getCurrentNode(state),
186
186
  setCheckedNodes: setCheckedNodes({ props, state }),
187
- setCheckedKeys: setCheckedKeys({ props, state }),
187
+ setCheckedKeys: setCheckedKeys({ props, state, api: api2 }),
188
188
  setChecked: setChecked(state),
189
189
  getHalfCheckedNodes: getHalfCheckedNodes(state),
190
190
  getHalfCheckedKeys: getHalfCheckedKeys(state),
@@ -239,7 +239,7 @@ const renderless = (props, { computed, onMounted, onUpdated, reactive, watch, pr
239
239
  const api2 = {};
240
240
  const state = initState({ reactive, emitter, props, computed, api: api2 });
241
241
  provide("parentEmitter", state.emitter);
242
- Object.assign(api2, initApi({ state, dispatch, broadcast, props, vm, constants, t, emit }), {
242
+ Object.assign(api2, initApi({ state, dispatch, broadcast, props, vm, constants, t, emit, api: api2 }), {
243
243
  closeMenu: closeMenu(state),
244
244
  mounted: mounted({ api: api2, vm }),
245
245
  created: created({ api: api2, props, state }),
@@ -47,7 +47,7 @@ const handleSelectChange = ({ props, state }) => (checked, indeterminate) => {
47
47
  state.oldChecked = checked;
48
48
  state.indeterminate = indeterminate;
49
49
  };
50
- const handleClick = ({ api, vm, props, state }) => (e, trigger) => {
50
+ const handleClick = ({ api, vm, props, state }) => (e) => {
51
51
  const store = state.tree.state.store;
52
52
  state.tree.clearCurrentStore(props.node);
53
53
  if (!state.tree.onlyCheckChildren) {
@@ -58,7 +58,7 @@ const handleClick = ({ api, vm, props, state }) => (e, trigger) => {
58
58
  state.tree.$emit("current-change", store.currentNode ? store.currentNode.data : null, store.currentNode);
59
59
  }
60
60
  state.tree.currentNode = vm;
61
- if (state.tree.checkOnClickNode && !props.node.disabled && trigger !== "checkbox") {
61
+ if (state.tree.checkOnClickNode && !props.node.disabled) {
62
62
  e.target.checked = !props.node.checked;
63
63
  api.handleCheckChange(null, e);
64
64
  }
@@ -1,4 +1,4 @@
1
- import { ComputedRef, ExtractPropTypes, ComponentPublicInstance } from 'vue';
1
+ import { ExtractPropTypes, ComponentPublicInstance } from 'vue';
2
2
  import { ISharedRenderlessFunctionParams, ISharedRenderlessParamUtils } from './shared.type.js';
3
3
 
4
4
  /**
@@ -17,14 +17,10 @@ declare const actionMenuProps: {
17
17
  type: ArrayConstructor;
18
18
  default: () => never[];
19
19
  };
20
- maxShowNum: {
21
- type: NumberConstructor;
22
- default: number;
23
- };
20
+ maxShowNum: NumberConstructor;
24
21
  moreText: StringConstructor;
25
22
  spacing: {
26
23
  type: (StringConstructor | NumberConstructor)[];
27
- default: string;
28
24
  };
29
25
  textField: {
30
26
  type: StringConstructor;
@@ -47,6 +43,10 @@ declare const actionMenuProps: {
47
43
  type: BooleanConstructor;
48
44
  default: boolean;
49
45
  };
46
+ mode: {
47
+ type: StringConstructor;
48
+ default: string;
49
+ };
50
50
  tiny_mode: StringConstructor;
51
51
  tiny_mode_root: BooleanConstructor;
52
52
  tiny_template: (FunctionConstructor | ObjectConstructor)[];
@@ -55,6 +55,26 @@ declare const actionMenuProps: {
55
55
  tiny_chart_theme: ObjectConstructor;
56
56
  };
57
57
 
58
+ /**
59
+ * Copyright (c) 2022 - present TinyVue Authors.
60
+ * Copyright (c) 2022 - present Huawei Cloud Computing Technologies Co., Ltd.
61
+ *
62
+ * Use of this source code is governed by an MIT-style license.
63
+ *
64
+ * THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
65
+ * BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
66
+ * A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
67
+ *
68
+ */
69
+
70
+ declare const computedMaxShowNum: ({ props, state }: Pick<IActionMenuRenderlessParams, 'props' | 'state'>) => () => number;
71
+ declare const computedSpacing: ({ props, state }: Pick<IActionMenuRenderlessParams, 'props' | 'state'>) => () => string;
72
+ declare const computedMoreText: ({ props, state, t }: any) => () => string;
73
+ declare const computedSuffixIcon: ({ props, state }: Pick<IActionMenuRenderlessParams, 'props' | 'state'>) => () => string | Object;
74
+ declare const handleMoreClick: (emit: IActionMenuRenderlessParams['emit']) => () => void;
75
+ declare const handleItemClick: (emit: IActionMenuRenderlessParams['emit']) => (data: IActionMenuItemData) => void;
76
+ declare const visibleChange: (emit: IActionMenuRenderlessParams['emit']) => (status: boolean) => void;
77
+
58
78
  /**
59
79
  * Copyright (c) 2022 - present TinyVue Authors.
60
80
  * Copyright (c) 2022 - present Huawei Cloud Computing Technologies Co., Ltd.
@@ -68,9 +88,13 @@ declare const actionMenuProps: {
68
88
  */
69
89
 
70
90
  interface IActionMenuState {
71
- visibleOptions: ComputedRef<object>;
72
- moreOptions: ComputedRef<object>;
73
- spacing: ComputedRef<string | number>;
91
+ visibleOptions: object;
92
+ moreOptions: object;
93
+ isCardMode: boolean;
94
+ spacing: string | number;
95
+ maxShowNum: number;
96
+ moreText: string;
97
+ suffixIcon: string | Object;
74
98
  }
75
99
  type IActionMenuProps = ExtractPropTypes<typeof actionMenuProps>;
76
100
  type IActionMenuRenderlessParams = ISharedRenderlessFunctionParams<null> & {
@@ -83,9 +107,13 @@ interface IActionMenuItemData {
83
107
  disabled: boolean;
84
108
  }
85
109
  interface IActionMenuApi {
86
- handleMoreClick: () => void;
87
- handleItemClick: (data: IActionMenuItemData) => void;
88
- visibleChange: (status: boolean) => void;
110
+ handleMoreClick: ReturnType<typeof handleMoreClick>;
111
+ handleItemClick: ReturnType<typeof handleItemClick>;
112
+ visibleChange: ReturnType<typeof visibleChange>;
113
+ computedMaxShowNum: ReturnType<typeof computedMaxShowNum>;
114
+ computedSpacing: ReturnType<typeof computedSpacing>;
115
+ computedMoreText: ReturnType<typeof computedMoreText>;
116
+ computedSuffixIcon: ReturnType<typeof computedSuffixIcon>;
89
117
  state: IActionMenuState;
90
118
  }
91
119
  type IActionMenuRenderlessParamUtils = ISharedRenderlessParamUtils<null>;
@@ -62,6 +62,18 @@ declare const DATEPICKER: {
62
62
  center: string;
63
63
  right: string;
64
64
  };
65
+ QuarterMap: {
66
+ 0: number;
67
+ 1: number;
68
+ 2: number;
69
+ 3: number;
70
+ };
71
+ MonthQuarterMap: {
72
+ 0: number;
73
+ 3: number;
74
+ 6: number;
75
+ 9: number;
76
+ };
65
77
  TriggerTypes: string[];
66
78
  DateFormats: {
67
79
  year: string;
@@ -79,6 +91,7 @@ declare const DATEPICKER: {
79
91
  };
80
92
  Time: string;
81
93
  TimeRange: string;
94
+ Quarter: string;
82
95
  IconTime: string;
83
96
  IconDate: string;
84
97
  DateRange: string;
@@ -162,7 +162,7 @@ declare const handleCancel: ({ api, emit }: Pick<IDialogBoxRenderlessParams, 'ap
162
162
  declare const updatePopper: ({ api, constants }: Pick<IDialogBoxRenderlessParams, 'api' | 'constants'>) => () => void;
163
163
  declare const afterEnter: (emit: IDialogBoxRenderlessParams['emit']) => () => void;
164
164
  declare const afterLeave: (emit: IDialogBoxRenderlessParams['emit']) => () => void;
165
- declare const handleDrag: ({ parent, props, state, emit }: Pick<IDialogBoxRenderlessParams, 'parent' | 'props' | 'state' | 'emit'>) => (event: MouseEvent) => void;
165
+ declare const handleDrag: ({ parent, props, state, emit, vm }: Pick<IDialogBoxRenderlessParams, 'parent' | 'props' | 'state' | 'emit' | 'vm'>) => (event: MouseEvent) => void;
166
166
  declare const showScrollbar: (lockScrollClass: string) => () => void;
167
167
  declare const hideScrollbar: (lockScrollClass: string) => () => void;
168
168
 
@@ -62,6 +62,10 @@ declare const dropdownItemProps: {
62
62
  type: NumberConstructor;
63
63
  default: () => number;
64
64
  };
65
+ tooltipContent: {
66
+ type: StringConstructor;
67
+ default: string;
68
+ };
65
69
  appendToBody: {
66
70
  type: BooleanConstructor;
67
71
  default: boolean;
@@ -1,4 +1,4 @@
1
1
  import 'vue';
2
- export { k as IDropdownItemApi, i as IDropdownItemConstants, q as IDropdownItemMfDataStore, p as IDropdownItemOptionStyle, h as IDropdownItemProps, m as IDropdownItemRenderlessParamUtils, l as IDropdownItemRenderlessParams, j as IDropdownItemState, n as IDropdownItemStyle, o as IDropdownItemTag, g as IDropdownItemVm } from './dropdown-item.type-8475a549.js';
2
+ export { k as IDropdownItemApi, i as IDropdownItemConstants, q as IDropdownItemMfDataStore, p as IDropdownItemOptionStyle, h as IDropdownItemProps, m as IDropdownItemRenderlessParamUtils, l as IDropdownItemRenderlessParams, j as IDropdownItemState, n as IDropdownItemStyle, o as IDropdownItemTag, g as IDropdownItemVm } from './dropdown-item.type-678794c9.js';
3
3
  import './shared.type.js';
4
4
  import './dropdown.type.js';
@@ -1,4 +1,4 @@
1
1
  import 'vue';
2
- export { b as IDropdownMenuApi, e as IDropdownMenuPopperParams, I as IDropdownMenuProps, d as IDropdownMenuRenderlessParamUtils, c as IDropdownMenuRenderlessParams, a as IDropdownMenuState, f as IDropdownMenuVm } from './dropdown-item.type-8475a549.js';
2
+ export { b as IDropdownMenuApi, e as IDropdownMenuPopperParams, I as IDropdownMenuProps, d as IDropdownMenuRenderlessParamUtils, c as IDropdownMenuRenderlessParams, a as IDropdownMenuState, f as IDropdownMenuVm } from './dropdown-item.type-678794c9.js';
3
3
  import './shared.type.js';
4
4
  import './dropdown.type.js';
@@ -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-6d6e3d0e.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-f34997c8.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-a2dc0099.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-8e30b25c.js';
3
3
  import './shared.type.js';
@@ -159,6 +159,7 @@ declare const formItemProps: {
159
159
  type: BooleanConstructor;
160
160
  default: boolean;
161
161
  };
162
+ extra: StringConstructor;
162
163
  tiny_mode: StringConstructor;
163
164
  tiny_mode_root: BooleanConstructor;
164
165
  tiny_template: (FunctionConstructor | ObjectConstructor)[];
@@ -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-a2dc0099.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-8e30b25c.js';
3
3
  import './shared.type.js';
@@ -59,6 +59,10 @@ declare const imageProps: {
59
59
  type: NumberConstructor;
60
60
  default: number;
61
61
  };
62
+ keepStyle: {
63
+ type: BooleanConstructor;
64
+ default: boolean;
65
+ };
62
66
  tiny_mode: StringConstructor;
63
67
  tiny_mode_root: BooleanConstructor;
64
68
  tiny_template: (FunctionConstructor | ObjectConstructor)[];
@@ -19,6 +19,7 @@ declare const $constants: {
19
19
  FormItem: string;
20
20
  };
21
21
  MASKSYMBOL: string;
22
+ TEXTAREA_HEIGHT_MOBILE: number;
22
23
  };
23
24
  declare const inputProps: {
24
25
  _constants: {
@@ -40,6 +41,7 @@ declare const inputProps: {
40
41
  FormItem: string;
41
42
  };
42
43
  MASKSYMBOL: string;
44
+ TEXTAREA_HEIGHT_MOBILE: number;
43
45
  };
44
46
  };
45
47
  name: StringConstructor;
@@ -231,7 +233,7 @@ declare const calculateNodeStyling: () => (targetElement: HTMLElement) => {
231
233
  borderSize: number;
232
234
  boxSizing: string;
233
235
  };
234
- declare const calcTextareaHeight: ({ api, hiddenTextarea, props, state }: Pick<IInputRenderlessParams, "state" | "props" | "api"> & {
236
+ declare const calcTextareaHeight: ({ api, hiddenTextarea, props, state, mode, constants }: Pick<IInputRenderlessParams, "mode" | "props" | "state" | "api" | "constants"> & {
235
237
  hiddenTextarea: HTMLTextAreaElement | null;
236
238
  }) => (targetElement: HTMLTextAreaElement, minRows?: number, maxRows?: null) => {
237
239
  minHeight?: string | undefined;
@@ -58,6 +58,9 @@ declare const numericProps: {
58
58
  type: BooleanConstructor;
59
59
  default: boolean;
60
60
  };
61
+ emptyValue: {
62
+ default: undefined;
63
+ };
61
64
  circulate: BooleanConstructor;
62
65
  controls: {
63
66
  type: BooleanConstructor;
@@ -189,7 +192,7 @@ declare const initService: (service: INumericRenderlessParamUtils['service']) =>
189
192
  getNumberFormat: Function;
190
193
  };
191
194
  declare const getDecimal: (props: INumericProps) => (value: number) => BigIntDecimal;
192
- declare const watchValue: ({ api, props, state, nextTick }: Pick<INumericRenderlessParams, 'api' | 'state' | 'nextTick' | 'props'>) => (value: number) => void;
195
+ declare const watchValue: ({ api, props, state }: Pick<INumericRenderlessParams, 'api' | 'state' | 'props'>) => (value: number) => void;
193
196
  declare const toPrecision: (state: INumericState) => ({ num, precision }: {
194
197
  num: number;
195
198
  precision: number;
@@ -218,8 +221,6 @@ declare const updated: ({ constants, parent, state }: Pick<INumericRenderlessPar
218
221
  declare const displayValue: ({ props, state, api }: Pick<INumericRenderlessParams, 'props' | 'state' | 'api'>) => () => string | number;
219
222
  declare const getNumPecision: ({ api, props }: Pick<INumericRenderlessParams, 'api' | 'props'>) => () => number;
220
223
  declare const mouseEvent: ({ api, props, state }: Pick<INumericRenderlessParams, 'api' | 'props' | 'state'>) => (event: MouseEvent) => void | boolean;
221
- declare const dispatchDisplayedValue: ({ state, api, dispatch }: Pick<INumericRenderlessParams, 'state' | 'api' | 'dispatch'>) => () => void;
222
- declare const getDisplayedValue: ({ state, props }: Pick<INumericRenderlessParams, 'state' | 'props'>) => () => string;
223
224
  declare const getDisplayOnlyText: ({ parent, state, props }: Pick<INumericRenderlessParams, 'parent' | 'state' | 'props'>) => () => string | number;
224
225
  declare const filterValue: ({ state }: Pick<INumericRenderlessParams, 'state'>) => () => number | string;
225
226
  declare const handleClear: ({ state, emit }: Pick<INumericRenderlessParams, 'state' | 'emit'>) => () => void;
@@ -269,8 +270,6 @@ interface INumericApi {
269
270
  handleBlur: ReturnType<typeof handleBlur>;
270
271
  watchValue: ReturnType<typeof watchValue>;
271
272
  setCurrentValue: ReturnType<typeof setCurrentValue>;
272
- dispatchDisplayedValue: ReturnType<typeof dispatchDisplayedValue>;
273
- getDisplayedValue: ReturnType<typeof getDisplayedValue>;
274
273
  getDisplayOnlyText: ReturnType<typeof getDisplayOnlyText>;
275
274
  filterValue: ReturnType<typeof filterValue>;
276
275
  handleClear: ReturnType<typeof handleClear>;
@@ -41,6 +41,10 @@ declare const popConfirmProps: {
41
41
  type: BooleanConstructor;
42
42
  default: boolean;
43
43
  };
44
+ closeOnClickOutside: {
45
+ type: BooleanConstructor;
46
+ default: boolean;
47
+ };
44
48
  title: StringConstructor;
45
49
  placement: {
46
50
  type: StringConstructor;
@@ -50,6 +54,10 @@ declare const popConfirmProps: {
50
54
  type: (StringConstructor | ObjectConstructor)[];
51
55
  reference: {};
52
56
  events: ObjectConstructor;
57
+ popperAppendToBody: {
58
+ type: BooleanConstructor;
59
+ default: boolean;
60
+ };
53
61
  tiny_mode: StringConstructor;
54
62
  tiny_mode_root: BooleanConstructor;
55
63
  tiny_template: (FunctionConstructor | ObjectConstructor)[];
@@ -92,7 +92,7 @@ declare const popoverProps: {
92
92
  *
93
93
  */
94
94
 
95
- declare const mounted: ({ api, state, constants, props, nextTick, mode }: Pick<IPopoverRenderlessParams, "state" | "props" | "nextTick" | "api" | "mode"> & {
95
+ declare const mounted: ({ api, state, constants, props, nextTick, mode }: Pick<IPopoverRenderlessParams, "mode" | "props" | "state" | "api" | "nextTick"> & {
96
96
  constants: {
97
97
  IDPREFIX: string;
98
98
  };
@@ -106,7 +106,7 @@ declare const handleBlur: ({ props, state }: Pick<IPopoverRenderlessParams, 'sta
106
106
  declare const handleMouseEnter: ({ props, state }: Pick<IPopoverRenderlessParams, 'state' | 'props'>) => () => void;
107
107
  declare const handleKeydown: ({ api, props }: Pick<IPopoverRenderlessParams, 'api' | 'props'>) => (event: KeyboardEvent) => void;
108
108
  declare const handleMouseLeave: ({ props, state }: Pick<IPopoverRenderlessParams, 'state' | 'props'>) => () => void;
109
- declare const handleDocumentClick: ({ vm, state }: Pick<IPopoverRenderlessParams, 'state' | 'vm'>) => (event: MouseEvent) => void;
109
+ declare const handleDocumentClick: ({ vm, state }: Pick<IPopoverRenderlessParams, 'state' | 'vm'>) => (event: MouseEvent) => boolean;
110
110
  declare const handleAfterEnter: (emit: IPopoverRenderlessParams['emit']) => () => void;
111
111
  declare const handleAfterLeave: (emit: IPopoverRenderlessParams['emit']) => () => void;
112
112
  /** mobile.vue中,给listData项的点击事件 */
@@ -24,7 +24,7 @@ declare const skeletonProps: {
24
24
  type: PropType<(string | number)[]>;
25
25
  default: () => never[];
26
26
  };
27
- active: {
27
+ animated: {
28
28
  type: BooleanConstructor;
29
29
  default: boolean;
30
30
  };
@@ -0,0 +1,56 @@
1
+ import { ExtractPropTypes } from 'vue';
2
+ import { PropType } from '@opentiny/vue-common';
3
+ import { ISharedRenderlessFunctionParams } from './shared.type.js';
4
+
5
+ declare const $constants: {
6
+ PREFIX: string;
7
+ };
8
+ declare const statisticProps: {
9
+ _constants: {
10
+ type: ObjectConstructor;
11
+ default: () => {
12
+ PREFIX: string;
13
+ };
14
+ };
15
+ precision: {
16
+ type: NumberConstructor;
17
+ default: number;
18
+ };
19
+ formatter: FunctionConstructor;
20
+ value: {
21
+ type: PropType<number | object>;
22
+ default: number;
23
+ };
24
+ prefix: StringConstructor;
25
+ suffix: StringConstructor;
26
+ title: (StringConstructor | ObjectConstructor)[];
27
+ valueStyle: {
28
+ type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
29
+ };
30
+ groupSeparator: {
31
+ type: StringConstructor;
32
+ default: string;
33
+ };
34
+ tiny_mode: StringConstructor;
35
+ tiny_mode_root: BooleanConstructor;
36
+ tiny_template: (FunctionConstructor | ObjectConstructor)[];
37
+ tiny_renderless: FunctionConstructor;
38
+ tiny_theme: StringConstructor;
39
+ tiny_chart_theme: ObjectConstructor;
40
+ };
41
+
42
+ type IStatisticProps = ExtractPropTypes<typeof statisticProps>;
43
+ type IStatisticConstants = typeof $constants;
44
+ interface IStatisticState {
45
+ getIntegerAndDecimal: number | string;
46
+ }
47
+ interface IStatisticApi {
48
+ getIntegerAndDecimal: (value: string | number) => string | undefined;
49
+ }
50
+ type IStatisticPcRenderlessParams = ISharedRenderlessFunctionParams<never> & {
51
+ state: IStatisticState;
52
+ props: IStatisticProps;
53
+ api: IStatisticApi;
54
+ };
55
+
56
+ export { IStatisticApi, IStatisticConstants, IStatisticPcRenderlessParams, IStatisticProps, IStatisticState };
@@ -7,7 +7,10 @@ declare const tagProps: {
7
7
  type: StringConstructor;
8
8
  theme: StringConstructor;
9
9
  size: StringConstructor;
10
- color: StringConstructor;
10
+ color: {
11
+ type: (StringConstructor | ArrayConstructor)[];
12
+ default: string;
13
+ };
11
14
  closable: BooleanConstructor;
12
15
  operable: BooleanConstructor;
13
16
  disabled: BooleanConstructor;
@@ -164,6 +164,10 @@ declare const timelineItemProps: {
164
164
  type: (StringConstructor | NumberConstructor)[];
165
165
  default: string;
166
166
  };
167
+ autoColorField: {
168
+ type: StringConstructor;
169
+ default: string;
170
+ };
167
171
  tiny_mode: StringConstructor;
168
172
  tiny_mode_root: BooleanConstructor;
169
173
  tiny_template: (FunctionConstructor | ObjectConstructor)[];
@@ -195,6 +199,7 @@ declare const getStatusCls: ({ constants, state }: Pick<ITimelineItemRenderlessP
195
199
  declare const computedCurrent: ({ state, api }: Pick<ITimelineItemRenderlessParams, 'state' | 'api'>) => () => number;
196
200
  declare const computedIsReverse: (api: ITimelineItemApi) => () => boolean;
197
201
  declare const computedItemCls: ({ props, api, state }: Pick<ITimelineItemRenderlessParams, 'props' | 'api' | 'state'>) => () => ITimelineCustomCls;
202
+ declare const computedIconClass: ({ props, api }: Pick<ITimelineItemRenderlessParams, 'props' | 'api'>) => () => Array<string | Object>;
198
203
  declare const computedItemStyle: ({ props, state, api }: Pick<ITimelineItemRenderlessParams, 'props' | 'state' | 'api'>) => () => {
199
204
  width?: string | number;
200
205
  height?: string | number;
@@ -227,6 +232,7 @@ interface ITimelineItemState {
227
232
  [key: string]: string | number;
228
233
  } | null;
229
234
  computedLineWidth: string;
235
+ iconClass: ITimelineCustomCls;
230
236
  }
231
237
  interface ITimelineItemApi {
232
238
  state: ITimelineItemState;
@@ -240,6 +246,7 @@ interface ITimelineItemApi {
240
246
  getStatus: ReturnType<typeof getStatus>;
241
247
  handleClick: ReturnType<typeof handleClick>;
242
248
  getStatusCls: ReturnType<typeof getStatusCls>;
249
+ computedIconClass: ReturnType<typeof computedIconClass>;
243
250
  }
244
251
  type ITimelineItemRenderlessParams = ISharedRenderlessFunctionParams<ITimelineItemConstants> & {
245
252
  api: ITimelineItemApi;
@@ -1,4 +1,4 @@
1
1
  import 'vue';
2
- export { l as ITimelineApi, i as ITimelineConstants, o as ITimelineCustomCls, h as ITimelineProps, j as ITimelineRenderlessParamUtils, m as ITimelineRenderlessParams, k as ITimelineState, n as ITimelineStatusCls } from './time-line.type-b155cb4f.js';
2
+ export { l as ITimelineApi, i as ITimelineConstants, o as ITimelineCustomCls, h as ITimelineProps, j as ITimelineRenderlessParamUtils, m as ITimelineRenderlessParams, k as ITimelineState, n as ITimelineStatusCls } from './time-line.type-1b501c41.js';
3
3
  import './shared.type.js';
4
4
  import '@opentiny/vue-common';
@@ -1,4 +1,4 @@
1
1
  import 'vue';
2
- export { g as ITimelineInject, f as ITimelineItem, d as ITimelineItemApi, a as ITimelineItemConstants, I as ITimelineItemProps, b as ITimelineItemRenderlessParamUtils, e as ITimelineItemRenderlessParams, c as ITimelineItemState, T as TimelineItemType } from './time-line.type-b155cb4f.js';
2
+ export { g as ITimelineInject, f as ITimelineItem, d as ITimelineItemApi, a as ITimelineItemConstants, I as ITimelineItemProps, b as ITimelineItemRenderlessParamUtils, e as ITimelineItemRenderlessParams, c as ITimelineItemState, T as TimelineItemType } from './time-line.type-1b501c41.js';
3
3
  import './shared.type.js';
4
4
  import '@opentiny/vue-common';
@@ -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, "state" | "props"> & {
111
+ declare const getTargetData: ({ props, state, Tree, Table }: Pick<ITransferRenderlessParams, "props" | "state"> & {
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, "state" | "props" | "refs" | "emit"> & {
118
+ declare const addToRight: ({ emit, refs, props, state, Tree }: Pick<ITransferRenderlessParams, "emit" | "props" | "state" | "refs"> & {
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" | "refs" | "api"> & {
129
+ declare const sortableEvent: ({ api, droppanel, props, queryDom, refs }: Pick<ITransferRenderlessParams, "props" | "api" | "refs"> & {
130
130
  droppanel: string;
131
131
  queryDom: string;
132
132
  }) => () => void;
@@ -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-6d6e3d0e.js';
3
+ import { I as IFileUploadVm, a as IFileUploadConstants } from './upload-list.type-f34997c8.js';
4
4
 
5
5
  declare const UploadDraggerProps: {
6
6
  disabled: BooleanConstructor;
@@ -403,7 +403,7 @@ declare const beforeUpload: ({ props, api, Modal, constants, t, state }: Pick<IF
403
403
  declare const startUpload: ({ state, constants, vm, Modal, api, t }: Pick<IFileUploadRenderlessParams, 'state' | 'constants' | 'vm' | 'api' | 't'> & IFileUploadModalVm) => (file: IFileUploadFile, isList: boolean) => void;
404
404
  declare const properFileSize: ({ props, state, api, constants, Modal, t }: Pick<IFileUploadRenderlessParams, 'props' | 'state' | 'constants' | 'api' | 't'> & IFileUploadModalVm) => (file: IFileUploadFile) => boolean;
405
405
  declare const addFileToList: ({ api, constants, emit, props, state, mode }: Pick<IFileUploadRenderlessParams, 'api' | 'constants' | 'emit' | 'props' | 'state' | 'mode'>) => (rawFile: IFileUploadFile, updateId: string, reUpload: boolean) => void;
406
- declare const getFileHash: ({ emit, Modal, constants, t, CryptoJS, state }: Pick<IFileUploadRenderlessParams, "state" | "emit" | "t" | "constants"> & IFileUploadModalVm & {
406
+ declare const getFileHash: ({ emit, Modal, constants, t, CryptoJS, state }: Pick<IFileUploadRenderlessParams, "emit" | "state" | "t" | "constants"> & IFileUploadModalVm & {
407
407
  CryptoJS: object;
408
408
  }) => ({ file, chunkSize, showTips }: {
409
409
  file: IFileUploadFile;
@@ -482,13 +482,13 @@ declare const sliceDownloadChunk: ({ state }: Pick<IFileUploadRenderlessParams,
482
482
  declare const batchSegmentDownload: ({ state, api }: Pick<IFileUploadRenderlessParams, 'state' | 'api'>) => ({ batchIndex, batches, docId, isBatch, isLessThan17G }: IFileUploadBatchSegmentDownload) => void;
483
483
  declare const downloadFileInner: ({ api, props, state }: Pick<IFileUploadRenderlessParams, 'api' | 'props' | 'state'>) => ({ batchIndex, file, range, isBatch, isChunk, isLessThan17G }: IFileUploadDownloadFileInner) => void;
484
484
  declare const afterDownload: ({ api, state }: Pick<IFileUploadRenderlessParams, 'api' | 'state'>) => ({ batchIndex, range, data, file, isBatch, isChunk, isLessThan17G }: IFileUploadAfterDownload) => void;
485
- declare const setWriterFile: ({ state, emit, Streamsaver }: Pick<IFileUploadRenderlessParams, "state" | "emit"> & {
485
+ declare const setWriterFile: ({ state, emit, Streamsaver }: Pick<IFileUploadRenderlessParams, "emit" | "state"> & {
486
486
  Streamsaver: IFileUploadStreamsaver;
487
487
  }) => ({ data, index, isLessThan17G, file }: IFileUploadSetWriterFile) => Function;
488
488
  declare const getFormData$1: ({ constants, props, state }: Pick<IFileUploadRenderlessParams, 'constants' | 'props' | 'state'>) => ({ formData, file, type }: IFileUploadGetFormData) => IUploadFormData;
489
489
  declare const largeDocumentUpload: ({ api, Modal, state, t, emit, constants }: Pick<IFileUploadRenderlessParams, 'api' | 'state' | 't' | 'emit' | 'constants'> & IFileUploadModalVm) => (file: IFileUploadFile) => void;
490
490
  declare const segmentUploadInit: ({ api, props, service, state, constants }: Pick<IFileUploadRenderlessParams, 'api' | 'props' | 'service' | 'state' | 'constants'>) => (file: IFileUploadFile) => Promise<unknown>;
491
- declare const segmentUpload: ({ api, props, service, state, emit, constants, CryptoJS }: Pick<IFileUploadRenderlessParams, "state" | "props" | "emit" | "api" | "constants" | "service"> & {
491
+ declare const segmentUpload: ({ api, props, service, state, emit, constants, CryptoJS }: Pick<IFileUploadRenderlessParams, "emit" | "props" | "state" | "api" | "constants" | "service"> & {
492
492
  CryptoJS: object;
493
493
  }) => (batchIndex: number, file: IFileUploadFile, progress: {
494
494
  file: IFileUploadFile;
@@ -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-6d6e3d0e.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-f34997c8.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-6d6e3d0e.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-f34997c8.js';
3
3
  import './shared.type.js';