@cloudbase/weda-ui 3.4.11 → 3.4.13

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 (168) hide show
  1. package/dist/configs/components/common/form-input-required.js +3 -3
  2. package/dist/configs/components/customer-service.js +3 -0
  3. package/dist/configs/components/dataView.js +20 -10
  4. package/dist/configs/components/form-checkbox.js +15 -2
  5. package/dist/configs/components/form-date.js +1 -1
  6. package/dist/configs/components/form-depart-tree-select.js +1 -1
  7. package/dist/configs/components/form-email.js +17 -2
  8. package/dist/configs/components/form-input.js +17 -2
  9. package/dist/configs/components/form-location.js +1 -1
  10. package/dist/configs/components/form-multi-region.js +1 -1
  11. package/dist/configs/components/form-phone.js +17 -2
  12. package/dist/configs/components/form-radio.js +15 -2
  13. package/dist/configs/components/form-rich-text.js +1 -1
  14. package/dist/configs/components/form-select-multiple.js +362 -0
  15. package/dist/configs/components/form-select.js +1 -1
  16. package/dist/configs/components/form-switch.js +16 -3
  17. package/dist/configs/components/form-text-area.js +15 -2
  18. package/dist/configs/components/form-time.js +1 -1
  19. package/dist/configs/components/form-url.js +17 -2
  20. package/dist/configs/components/form-user-tree-select.js +14 -1
  21. package/dist/configs/components/listView.js +32 -49
  22. package/dist/configs/components/table.json +1 -54
  23. package/dist/configs/components/wd-bubble.js +46 -8
  24. package/dist/configs/components/wd-button.js +3 -0
  25. package/dist/configs/components/wd-checkbox.js +464 -0
  26. package/dist/configs/components/wd-form.js +66 -10
  27. package/dist/configs/components/wd-input-email.js +37 -0
  28. package/dist/configs/components/wd-input-phone.js +43 -0
  29. package/dist/configs/components/wd-input-url.js +37 -0
  30. package/dist/configs/components/wd-input.js +94 -0
  31. package/dist/configs/components/wd-official-account.js +87 -0
  32. package/dist/configs/components/wd-radio.js +443 -0
  33. package/dist/configs/components/wd-switch.js +315 -0
  34. package/dist/configs/components/wd-table.js +11 -59
  35. package/dist/configs/components/wd-textarea.js +82 -0
  36. package/dist/configs/components/wd-tree.js +443 -0
  37. package/dist/configs/components/web-view.js +3 -0
  38. package/dist/configs/index.js +24 -1
  39. package/dist/configs/type-utils/type-form.js +681 -0
  40. package/dist/docs/common/components/json-schema-view.js +1 -1
  41. package/dist/docs/common/components/methods-view.js +1 -1
  42. package/dist/docs/common/components/properties-view.js +3 -1
  43. package/dist/docs/common/format.js +7 -7
  44. package/dist/docs/common/tableView.js +3 -1
  45. package/dist/enum/index.js +196 -0
  46. package/dist/style/index.scss +1 -1
  47. package/dist/web/actions/showMessage/index.js +4 -1
  48. package/dist/web/components/carousel/index.js +1 -1
  49. package/dist/web/components/customer-service/customer-service.js +19 -2
  50. package/dist/web/components/dataView/index.js +16 -3
  51. package/dist/web/components/flow/common/hooks/useCommonFlowData/flow-get.js +5 -1
  52. package/dist/web/components/flow/common/request.js +5 -5
  53. package/dist/web/components/flow/modules/operations/controls-items/flow-task-info-modal.js +90 -0
  54. package/dist/web/components/form/formcell/index.css +13 -1
  55. package/dist/web/components/form/formcell/index.js +1 -1
  56. package/dist/web/components/form/location/components/LocationH5/location.h5.js +1 -1
  57. package/dist/web/components/form/select/dropdown-select/index.js +9 -3
  58. package/dist/web/components/form/select/h5.js +18 -8
  59. package/dist/web/components/form/select/index.js +9 -10
  60. package/dist/web/components/form/select/region/index.js +1 -1
  61. package/dist/web/components/form/selectMultiple/dropdown-select/h5.js +111 -0
  62. package/dist/web/components/form/selectMultiple/dropdown-select/index.css +270 -0
  63. package/dist/web/components/form/selectMultiple/dropdown-select/index.js +206 -0
  64. package/dist/web/components/form/selectMultiple/dropdown-select/pc.js +115 -0
  65. package/dist/web/components/form/selectMultiple/dropdown-select/ui.js +113 -0
  66. package/dist/web/components/form/selectMultiple/h5.js +40 -0
  67. package/dist/web/components/form/selectMultiple/index.js +94 -0
  68. package/dist/web/components/form/selectMultiple/request.js +76 -0
  69. package/dist/web/components/form/selectMultiple/status/allEmpty.js +5 -0
  70. package/dist/web/components/form/selectMultiple/status/empty.js +19 -0
  71. package/dist/web/components/form/selectMultiple/status/index.css +63 -0
  72. package/dist/web/components/form/selectMultiple/status/index.js +7 -0
  73. package/dist/web/components/form/selectMultiple/status/loading.js +19 -0
  74. package/dist/web/components/form/selectMultiple/status/propsType.js +1 -0
  75. package/dist/web/components/form/selectMultiple/status/retry.js +19 -0
  76. package/dist/web/components/form/tips/index.css +9 -3
  77. package/dist/web/components/form/uploader/index.css +10 -0
  78. package/dist/web/components/form/uploader/uploader.h5.js +60 -62
  79. package/dist/web/components/form/uploader/uploader.pc.js +48 -41
  80. package/dist/web/components/form/uploaderFile/uploadFile.h5.js +8 -33
  81. package/dist/web/components/form/uploaderFile/uploadFile.pc.js +8 -37
  82. package/dist/web/components/form/userOrgSelect/common/fetch-data-service.js +76 -50
  83. package/dist/web/components/form/userOrgSelect/common/utils.js +24 -8
  84. package/dist/web/components/form/userOrgSelect/component/depart-select/depart-select-pc.js +3 -8
  85. package/dist/web/components/form/userOrgSelect/component/depart-select/index.js +14 -18
  86. package/dist/web/components/form/userOrgSelect/component/depart-select/org-modal-pc.js +20 -14
  87. package/dist/web/components/form/userOrgSelect/component/modal-select-h5.js +1 -1
  88. package/dist/web/components/form/userOrgSelect/component/org-tree.js +21 -9
  89. package/dist/web/components/form/userOrgSelect/component/user-select-h5/index.js +76 -15
  90. package/dist/web/components/form/userOrgSelect/component/user-select-pc/user-model.js +2 -7
  91. package/dist/web/components/form/userOrgSelect/component/user-select-pc/user-select-pc.js +6 -4
  92. package/dist/web/components/form/userOrgSelect/component/userOrgSelect.css +8 -2
  93. package/dist/web/components/form/userOrgSelect/departTreeSelect/departTreeSelect.h5.js +25 -51
  94. package/dist/web/components/form/userOrgSelect/hooks/use-depart-data.js +10 -6
  95. package/dist/web/components/form-input-hooks/index.js +41 -15
  96. package/dist/web/components/form-select-multiple/index.js +26 -0
  97. package/dist/web/components/form-upload-file/index.js +0 -1
  98. package/dist/web/components/form-user-tree-select/index.js +2 -2
  99. package/dist/web/components/formdetail/index.css +31 -1
  100. package/dist/web/components/formdetail/index.js +33 -1
  101. package/dist/web/components/index.js +27 -11
  102. package/dist/web/components/listView/index.js +20 -5
  103. package/dist/web/components/navigationBar/common.js +1 -1
  104. package/dist/web/components/navigationBar/horizontalMenu.js +1 -1
  105. package/dist/web/components/navigationBar/index.css +11 -0
  106. package/dist/web/components/navigationBar/index.js +8 -1
  107. package/dist/web/components/phone/index.js +26 -1
  108. package/dist/web/components/phoneCode/index.js +3 -1
  109. package/dist/web/components/richText/index.css +70 -67
  110. package/dist/web/components/richText/index.js +311 -251
  111. package/dist/web/components/richText/richtext.module.css +1 -0
  112. package/dist/web/components/richTextView/index.css +39 -0
  113. package/dist/web/components/richTextView/index.js +1 -1
  114. package/dist/web/components/share/index.js +26 -1
  115. package/dist/web/components/table/ImportFileModalByApi/uploadCSVFile.js +1 -1
  116. package/dist/web/components/wd-checkbox/checkbox.js +34 -0
  117. package/dist/web/components/wd-checkbox/index.js +3 -0
  118. package/dist/web/components/wd-checkbox-list/checkboxList.js +140 -0
  119. package/dist/web/components/wd-checkbox-list/index.js +3 -0
  120. package/dist/web/components/wd-form/hooks/use-remote-value.js +9 -2
  121. package/dist/web/components/wd-form/index.js +69 -34
  122. package/dist/web/components/wd-form/wd-form.js +42 -0
  123. package/dist/web/components/wd-form-cell/index.js +3 -0
  124. package/dist/web/components/wd-form-cell/wd-form-cell.js +42 -0
  125. package/dist/web/components/wd-form-item/index.js +4 -0
  126. package/dist/web/components/wd-form-item/wd-form-item.js +55 -0
  127. package/dist/web/components/wd-form-item/wd-input-group.js +24 -0
  128. package/dist/web/components/wd-icon/wd-icon.js +10 -2
  129. package/dist/web/components/wd-input/index.js +3 -0
  130. package/dist/web/components/wd-input/wd-input.js +155 -0
  131. package/dist/web/components/wd-input-email/index.js +3 -0
  132. package/dist/web/components/wd-input-email/wd-input-email.js +13 -0
  133. package/dist/web/components/wd-input-group/index.js +3 -0
  134. package/dist/web/components/wd-input-group/wd-input-group.js +10 -0
  135. package/dist/web/components/wd-input-phone/index.js +3 -0
  136. package/dist/web/components/wd-input-phone/wd-input-phone.js +14 -0
  137. package/dist/web/components/wd-input-url/index.js +3 -0
  138. package/dist/web/components/wd-input-url/wd-input-url.js +13 -0
  139. package/dist/web/components/wd-input-wrap/index.js +3 -0
  140. package/dist/web/components/wd-input-wrap/wd-input-wrap.js +18 -0
  141. package/dist/web/components/wd-official-account/index.css +29 -0
  142. package/dist/web/components/wd-official-account/index.js +36 -0
  143. package/dist/web/components/wd-radio/index.js +3 -0
  144. package/dist/web/components/wd-radio/wd-radio.js +30 -0
  145. package/dist/web/components/wd-radio-list/index.js +3 -0
  146. package/dist/web/components/wd-radio-list/wd-radio-list.js +104 -0
  147. package/dist/web/components/wd-switch/index.js +3 -0
  148. package/dist/web/components/wd-switch/wd-switch.js +52 -0
  149. package/dist/web/components/wd-table/components/FieldRender/index.js +5 -4
  150. package/dist/web/components/wd-table/components/FilterFieldsPanel/FilterFieldItem.js +4 -0
  151. package/dist/web/components/wd-table/components/Table/index.js +40 -9
  152. package/dist/web/components/wd-table/hooks/useQueryParams.js +4 -1
  153. package/dist/web/components/wd-table/hooks/useTableData.js +6 -1
  154. package/dist/web/components/wd-table/hooks/useViewFields.js +1 -1
  155. package/dist/web/components/wd-table/utils/index.js +6 -2
  156. package/dist/web/components/wd-table/wd-table.js +125 -99
  157. package/dist/web/components/wd-textarea/index.js +3 -0
  158. package/dist/web/components/wd-textarea/wd-textarea.js +78 -0
  159. package/dist/web/components/wd-tree/index.js +3 -0
  160. package/dist/web/components/wd-tree/utils.js +291 -0
  161. package/dist/web/components/wd-tree/wd-tree.js +193 -0
  162. package/dist/web/utils/constant.js +16 -0
  163. package/dist/web/utils/datasource.js +2 -2
  164. package/dist/web/utils/date.js +3 -3
  165. package/dist/web/utils/hooks/useFormLegacy.js +112 -0
  166. package/dist/web/utils/tool.js +12 -2
  167. package/dist/web/weda-ui.css +197 -3
  168. package/package.json +6 -5
@@ -1,5 +1,30 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
+ /*
3
+ * @Date: 2023-04-12 16:43:55
4
+ * @LastEditTime: 2023-05-04 12:09:27
5
+ * @Description:
6
+ */
7
+ import * as React from 'react';
2
8
  import Button from '../../components/button';
3
9
  import { Bubble, ConfigProvider } from 'tea-component';
4
- const Phone = (props) => (_jsx(ConfigProvider, { classPrefix: "wedatea2td", children: _jsx(Bubble, { content: "\u8BE5\u7EC4\u4EF6\u5FC5\u987B\u5728\u5C0F\u7A0B\u5E8F\u771F\u5B9E\u73AF\u5883\u4F7F\u7528\u624D\u80FD\u591F\u770B\u5230\u5B9E\u9645\u6548\u679C, \u5E76\u4E14\u5C0F\u7A0B\u5E8F\u5FC5\u987B\u4E3A\u4F01\u4E1A\u4E3B\u4F53\u3002", children: _jsx(Button, { ...props }) }) }));
10
+ // @ts-ignore忽略ts交验
11
+ // eslint-disable-next-line rulesdir/no-phantom-deps,import/no-unresolved
12
+ import { autorun } from 'mobx';
13
+ const Phone = (props) => {
14
+ var _a, _b;
15
+ const [editorPlatforms, setEditorPlatforms] = React.useState([]);
16
+ const dispose = React.useMemo(() => {
17
+ return autorun(() => {
18
+ var _a, _b;
19
+ setEditorPlatforms((_b = (_a = window === null || window === void 0 ? void 0 : window.$w) === null || _a === void 0 ? void 0 : _a.wedaContext) === null || _b === void 0 ? void 0 : _b.editorPlatforms);
20
+ });
21
+ }, []);
22
+ React.useEffect(() => {
23
+ return () => {
24
+ dispose();
25
+ };
26
+ }, [dispose]);
27
+ return (_jsx(ConfigProvider, { classPrefix: "wedatea2td", children: ((_b = (_a = window.$w) === null || _a === void 0 ? void 0 : _a.wedaContext) === null || _b === void 0 ? void 0 : _b.isEditorMode) ||
28
+ (editorPlatforms === null || editorPlatforms === void 0 ? void 0 : editorPlatforms.includes('MP')) ? (_jsx(Bubble, { content: "\u8BE5\u7EC4\u4EF6\u5FC5\u987B\u5728\u5C0F\u7A0B\u5E8F\u771F\u5B9E\u73AF\u5883\u4F7F\u7528\u624D\u80FD\u591F\u770B\u5230\u5B9E\u9645\u6548\u679C, \u5E76\u4E14\u5C0F\u7A0B\u5E8F\u5FC5\u987B\u4E3A\u4F01\u4E1A\u4E3B\u4F53\u3002", children: _jsx(Button, { ...props }) })) : null }));
29
+ };
5
30
  export default Phone;
@@ -2,5 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import Button from '../../components/button';
3
3
  import { Bubble, ConfigProvider } from 'tea-component';
4
4
  // export type PhoneCodeProps =
5
- const PhoneCode = (props) => (_jsx(ConfigProvider, { classPrefix: "wedatea2td", children: _jsx(Bubble, { content: "\u8BE5\u7EC4\u4EF6\u5FC5\u987B\u5728\u5C0F\u7A0B\u5E8F\u771F\u5B9E\u73AF\u5883\u4F7F\u7528\u624D\u80FD\u591F\u770B\u5230\u5B9E\u9645\u6548\u679C, \u5E76\u4E14\u5C0F\u7A0B\u5E8F\u5FC5\u987B\u4E3A\u4F01\u4E1A\u4E3B\u4F53\u3002", children: _jsx(Button, { ...props }) }) }));
5
+ const PhoneCode = (props) => {
6
+ return (_jsx(ConfigProvider, { classPrefix: "wedatea2td", children: _jsx(Bubble, { content: "\u8BE5\u7EC4\u4EF6\u5FC5\u987B\u5728\u5C0F\u7A0B\u5E8F\u771F\u5B9E\u73AF\u5883\u4F7F\u7528\u624D\u80FD\u591F\u770B\u5230\u5B9E\u9645\u6548\u679C, \u5E76\u4E14\u5C0F\u7A0B\u5E8F\u5FC5\u987B\u4E3A\u4F01\u4E1A\u4E3B\u4F53\u3002", children: _jsx(Button, { ...props }) }) }));
7
+ };
6
8
  export default PhoneCode;
@@ -1,112 +1,115 @@
1
- .richText-upload-link {
2
- width: 100%;
3
- display: flex;
4
- margin-top: 16px;
5
- margin-bottom: 20px;
1
+ .weda-richtext-toolbar {
2
+ position: sticky;
3
+ z-index: 2;
4
+ border-bottom: 1px solid #d1d1d1;
6
5
  }
7
6
 
8
- .richText-upload-link input {
9
- width: 100%;
7
+ .weda-richtext-toolbar .exeditor-toolbar {
8
+ padding: 5px;
10
9
  }
11
10
 
12
- .richtext_upload_dragger {
13
- width: 100%;
11
+ exeditor-toolbar-fold,
12
+ exeditor-toolbar-button,
13
+ exeditor-toolbar-select {
14
+ --button-width: 26px;
15
+ --button-height: 26px;
16
+ font-size: 13px !important;
14
17
  }
15
18
 
16
- .richtext_upload_dragger > div {
17
- width: 100%;
19
+ exeditor-toolbar-select > span > span {
20
+ font-size: 12px !important;
18
21
  }
19
22
 
20
- .richtext_upload_dragger > div > div {
21
- overflow: auto;
22
- word-break: break-word;
23
+ exeditor-toolbar-option,
24
+ exeditor-color-palette,
25
+ exeditor-toolbar-table-panel {
26
+ padding: 4px 10px !important;
27
+ font-size: 12px !important;
23
28
  }
24
29
 
25
- /* prettier-ignore */
26
- .weda-richText .bf-controlbar .control-item {
27
- margin: 5PX 0PX 5PX 0PX !important;
30
+ .weda-richtext-editor {
31
+ position: relative;
28
32
  }
29
33
 
30
- .weda-richText .bf-controlbar .control-item.button-indent-increase,
31
- .weda-richText .bf-controlbar .control-item.button-indent-decrease,
32
- .weda-richText .bf-controlbar .control-item[data-alignment='left'],
33
- .weda-richText .bf-controlbar .control-item[data-alignment='center'],
34
- .weda-richText .bf-controlbar .control-item[data-alignment='right'],
35
- .weda-richText .bf-controlbar .control-item[data-alignment='justify'],
36
- .weda-richText .bf-controlbar .control-item.link-editor-dropdown,
37
- .weda-richText .bf-controlbar .control-item[data-title='清除链接'] {
38
- margin-top: 0 !important;
34
+ .weda-richtext-editor .tableWrapper {
35
+ display: flex;
36
+ justify-content: center;
39
37
  }
40
38
 
41
- .weda-richText .weda-formcells__content .weui-cell_form {
42
- padding-top: 0;
39
+ .weda-richtext-editor .tableWrapper table th {
40
+ background-color: #f5f7fa;
41
+ border: 1px solid #e1e6f0;
43
42
  }
44
43
 
45
- .weda-richText .headings-dropdown {
46
- min-width: auto !important;
44
+ .weda-richtext-editor .tableWrapper table td {
45
+ border: 1px solid #e1e6f0;
47
46
  }
48
47
 
49
- /* prettier-ignore */
50
- .weda-richText .bf-controlbar .separator-line {
51
- height: 26PX !important;
48
+ .weda-richtext-editor i {
49
+ font-style: italic;
52
50
  }
53
51
 
54
- .weda-richText .bf-controlbar .control-item.button {
55
- min-width: auto !important;
52
+ .ExEditor-basic {
53
+ height: 100%;
54
+ overflow-y: auto;
55
+ padding-top: 30px;
56
56
  }
57
57
 
58
- .weda-richText {
59
- width: 100%;
58
+ .ExEditor-basic p,
59
+ .ExEditor-basic pre {
60
+ margin-top: 0px !important;
61
+ margin-bottom: 0px !important;
60
62
  }
61
63
 
62
- .weda-richText .weui-cell_active:active {
63
- background-color: unset !important;
64
+ .ExEditor-basic ol,
65
+ .ExEditor-basic ul {
66
+ padding-inline-start: 32px;
67
+ padding-left: 32px;
64
68
  }
65
69
 
66
- .weda-richText h1 {
67
- font-size: 2em;
70
+ .weda-richtext-container {
71
+ z-index: 2 !important;
72
+ height: 100%;
68
73
  }
69
74
 
70
- .weda-richText h2 {
71
- font-size: 1.5em;
75
+ .weda-richtext-container.ex-fullscreen {
76
+ z-index: 1001 !important;
72
77
  }
73
78
 
74
- .weda-richText h3 {
75
- font-size: 1.17em;
76
- }
77
-
78
- .weda-richText h4 {
79
- font-size: 1em;
79
+ .weda-richText .weda-formcells__content.weui-flex__item {
80
+ padding-top: 17px;
81
+ padding-bottom: 17px;
82
+ margin-top: 0px !important;
83
+ margin-bottom: 0px !important;
80
84
  }
81
85
 
82
- .weda-richText h5 {
83
- font-size: 0.83em;
86
+ .weda-richText .weui-cell_active:active {
87
+ background-color: unset !important;
84
88
  }
85
89
 
86
- .weda-richText h6 {
87
- font-size: 0.67em;
90
+ .weda-richText {
91
+ width: 100%;
88
92
  }
89
93
 
90
- .weda-richText .bf-container .bf-image,
91
- .weda-richText .bf-container .bf-media {
92
- position: relative;
94
+ .weda-richText .weda-formcells__content .weui-cell_form {
95
+ padding-top: 0;
96
+ height: 100%;
93
97
  }
94
98
 
95
- .weda-richText .bf-content .bf-image .bf-pre-csize {
96
- position: absolute;
97
- z-index: 1;
98
- background: transparent;
99
+ .weda-richText .weui-cells_forms {
100
+ height: 100%;
101
+ overflow: unset;
99
102
  }
100
103
 
101
- .weda-richText .weda-formcells__content.weui-flex__item {
102
- margin-top: 16px;
103
- margin-bottom: 16px;
104
+ .weda-richText > div {
105
+ height: inherit;
104
106
  }
105
107
 
106
- .weda-richText .bf-font-size-dropdown {
107
- min-width: 58px;
108
+ exeditor-link-modal {
109
+ z-index: 1005;
110
+ position: relative;
108
111
  }
109
112
 
110
- .bf-container.disabled {
111
- background-color: #eee;
113
+ .exeditor-toolbar {
114
+ z-index: 1005 !important;
112
115
  }