@giteeteam/apps-team-components 0.3.13 → 0.4.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 (311) hide show
  1. package/README.md +4 -1
  2. package/dist/index.js +1 -1
  3. package/dist/index.js.LICENSE.txt +5 -19
  4. package/dist/index.js.map +1 -1
  5. package/dist/main.css +3807 -2132
  6. package/dist/main.css.map +1 -1
  7. package/package.json +20 -20
  8. package/dist/cells/actors/BaseField.d.ts +0 -17
  9. package/dist/cells/actors/index.d.ts +0 -4
  10. package/dist/cells/annex/index.d.ts +0 -7
  11. package/dist/cells/assignee/index.d.ts +0 -23
  12. package/dist/cells/bind-workspace/BaseField.d.ts +0 -15
  13. package/dist/cells/bind-workspace/index.d.ts +0 -12
  14. package/dist/cells/board/index.d.ts +0 -22
  15. package/dist/cells/card-type/index.d.ts +0 -6
  16. package/dist/cells/checkbox/BaseField.d.ts +0 -14
  17. package/dist/cells/created-at/index.d.ts +0 -7
  18. package/dist/cells/created-by/index.d.ts +0 -9
  19. package/dist/cells/data-quote/index.d.ts +0 -8
  20. package/dist/cells/data-quote/util.d.ts +0 -9
  21. package/dist/cells/date/BaseField.d.ts +0 -21
  22. package/dist/cells/date/index.d.ts +0 -6
  23. package/dist/cells/date-range/BaseField.d.ts +0 -19
  24. package/dist/cells/date-range/index.d.ts +0 -6
  25. package/dist/cells/dropdown/BaseField.d.ts +0 -30
  26. package/dist/cells/dropdown/index.d.ts +0 -22
  27. package/dist/cells/editor/BaseField.d.ts +0 -29
  28. package/dist/cells/editor/Field.d.ts +0 -16
  29. package/dist/cells/editor/config/autoformatRules.d.ts +0 -3
  30. package/dist/cells/editor/config/index.d.ts +0 -5
  31. package/dist/cells/editor/config/pluginOptions.d.ts +0 -10
  32. package/dist/cells/editor/config/withDeserializeHTML.d.ts +0 -64
  33. package/dist/cells/editor/config/withStyledDraggables.d.ts +0 -2
  34. package/dist/cells/editor/config/withStyledPlaceHolders.d.ts +0 -2
  35. package/dist/cells/editor/elements/ImageElement.d.ts +0 -3
  36. package/dist/cells/editor/elements/MentionElement.d.ts +0 -3
  37. package/dist/cells/editor/elements/index.d.ts +0 -2
  38. package/dist/cells/editor/hooks.d.ts +0 -11
  39. package/dist/cells/editor/index.d.ts +0 -15
  40. package/dist/cells/editor/plugins/Fullscreen.d.ts +0 -7
  41. package/dist/cells/editor/plugins/ToolbarButton.d.ts +0 -3
  42. package/dist/cells/editor/plugins/ToolbarFont.d.ts +0 -12
  43. package/dist/cells/editor/plugins/ToolbarFontColor.d.ts +0 -7
  44. package/dist/cells/editor/plugins/ToolbarHistory.d.ts +0 -7
  45. package/dist/cells/editor/plugins/ToolbarLink.d.ts +0 -4
  46. package/dist/cells/editor/plugins/ToolbarTable.d.ts +0 -4
  47. package/dist/cells/editor/plugins/ToolbarUpload.d.ts +0 -4
  48. package/dist/cells/editor/plugins/Toolbars.d.ts +0 -11
  49. package/dist/cells/editor/plugins/font-bg-color/createFontBgColorPlugin.d.ts +0 -3
  50. package/dist/cells/editor/plugins/font-bg-color/defaults.d.ts +0 -2
  51. package/dist/cells/editor/plugins/font-bg-color/getFontDeserialize.d.ts +0 -2
  52. package/dist/cells/editor/plugins/font-bg-color/index.d.ts +0 -3
  53. package/dist/cells/editor/plugins/font-color/createFontColorPlugin.d.ts +0 -3
  54. package/dist/cells/editor/plugins/font-color/defaults.d.ts +0 -2
  55. package/dist/cells/editor/plugins/font-color/getFontDeserialize.d.ts +0 -2
  56. package/dist/cells/editor/plugins/font-color/index.d.ts +0 -3
  57. package/dist/cells/editor/plugins/font-family/createFontFamilyPlugin.d.ts +0 -3
  58. package/dist/cells/editor/plugins/font-family/defaults.d.ts +0 -2
  59. package/dist/cells/editor/plugins/font-family/getFontDeserialize.d.ts +0 -2
  60. package/dist/cells/editor/plugins/font-family/index.d.ts +0 -3
  61. package/dist/cells/editor/plugins/font-line-height/createFontLineHeightPlugin.d.ts +0 -3
  62. package/dist/cells/editor/plugins/font-line-height/defaults.d.ts +0 -2
  63. package/dist/cells/editor/plugins/font-line-height/getFontDeserialize.d.ts +0 -2
  64. package/dist/cells/editor/plugins/font-line-height/index.d.ts +0 -3
  65. package/dist/cells/editor/plugins/font-size/createFontSizePlugin.d.ts +0 -3
  66. package/dist/cells/editor/plugins/font-size/defaults.d.ts +0 -2
  67. package/dist/cells/editor/plugins/font-size/getFontDeserialize.d.ts +0 -2
  68. package/dist/cells/editor/plugins/font-size/index.d.ts +0 -3
  69. package/dist/cells/editor/plugins/image/createImagePlugin.d.ts +0 -3
  70. package/dist/cells/editor/plugins/image/getImageDeserialize.d.ts +0 -2
  71. package/dist/cells/editor/plugins/image/index.d.ts +0 -3
  72. package/dist/cells/editor/plugins/image/insertImage.d.ts +0 -2
  73. package/dist/cells/editor/plugins/image/withImageUpload.d.ts +0 -3
  74. package/dist/cells/editor/plugins/index.d.ts +0 -6
  75. package/dist/cells/editor/utils.d.ts +0 -13
  76. package/dist/cells/file/BaseField.d.ts +0 -15
  77. package/dist/cells/file/UploadFile.d.ts +0 -19
  78. package/dist/cells/file/index.d.ts +0 -13
  79. package/dist/cells/formula/BaseField.d.ts +0 -10
  80. package/dist/cells/formula/index.d.ts +0 -9
  81. package/dist/cells/item-group/index.d.ts +0 -22
  82. package/dist/cells/item-type/index.d.ts +0 -23
  83. package/dist/cells/key/index.d.ts +0 -6
  84. package/dist/cells/long-text/BaseField.d.ts +0 -17
  85. package/dist/cells/long-text/index.d.ts +0 -15
  86. package/dist/cells/name/index.d.ts +0 -14
  87. package/dist/cells/number/BaseField.d.ts +0 -24
  88. package/dist/cells/number/index.d.ts +0 -23
  89. package/dist/cells/priority/index.d.ts +0 -16
  90. package/dist/cells/radio/BaseField.d.ts +0 -14
  91. package/dist/cells/script/BaseField.d.ts +0 -8
  92. package/dist/cells/script/index.d.ts +0 -7
  93. package/dist/cells/security-level/BaseField.d.ts +0 -19
  94. package/dist/cells/sprint/index.d.ts +0 -22
  95. package/dist/cells/status/Field.d.ts +0 -26
  96. package/dist/cells/status/Transition.d.ts +0 -15
  97. package/dist/cells/status/TransitionButton.d.ts +0 -27
  98. package/dist/cells/status/TransitionPanel.d.ts +0 -15
  99. package/dist/cells/status/View.d.ts +0 -10
  100. package/dist/cells/status/hooks.d.ts +0 -3
  101. package/dist/cells/status/index.d.ts +0 -4
  102. package/dist/cells/story-point/index.d.ts +0 -23
  103. package/dist/cells/tableCellMapping.d.ts +0 -23
  104. package/dist/cells/tag/BaseField.d.ts +0 -22
  105. package/dist/cells/tag/tag-multiple-select/PopoverPanel.d.ts +0 -4
  106. package/dist/cells/tag/tag-multiple-select/TagPopoverSelect.d.ts +0 -4
  107. package/dist/cells/text/BaseField.d.ts +0 -16
  108. package/dist/cells/text/index.d.ts +0 -16
  109. package/dist/cells/time/BaseField.d.ts +0 -15
  110. package/dist/cells/time/index.d.ts +0 -6
  111. package/dist/cells/time-range/BaseField.d.ts +0 -20
  112. package/dist/cells/time-range/index.d.ts +0 -7
  113. package/dist/cells/tree/BaseField.d.ts +0 -15
  114. package/dist/cells/tree/utils.d.ts +0 -2
  115. package/dist/cells/updated-at/index.d.ts +0 -7
  116. package/dist/cells/updated-by/index.d.ts +0 -9
  117. package/dist/cells/user/BaseField.d.ts +0 -27
  118. package/dist/cells/user/index.d.ts +0 -21
  119. package/dist/cells/version/index.d.ts +0 -22
  120. package/dist/cells/workspace/index.d.ts +0 -22
  121. package/dist/common/EmptyField.d.ts +0 -6
  122. package/dist/common/FieldErrorBoundary.d.ts +0 -14
  123. package/dist/common/OverflowTooltip.d.ts +0 -23
  124. package/dist/common/UploadFile.d.ts +0 -19
  125. package/dist/common/base-table/ChildCardInlineCreator.d.ts +0 -9
  126. package/dist/common/base-table/index.d.ts +0 -16
  127. package/dist/common/columns-settings/ColumnsSettings.d.ts +0 -5
  128. package/dist/common/columns-settings/ColumnsSettingsItem.d.ts +0 -4
  129. package/dist/common/data-source/context.d.ts +0 -2
  130. package/dist/common/date/DatePicker.d.ts +0 -11
  131. package/dist/common/date/TimePicker.d.ts +0 -19
  132. package/dist/common/filters/filter-query/FilterPanel.d.ts +0 -4
  133. package/dist/common/filters/filter-query/IqlExpression.d.ts +0 -6
  134. package/dist/common/filters/filter-query/QuerySelector.d.ts +0 -4
  135. package/dist/common/filters/filter-query/utils.d.ts +0 -18
  136. package/dist/common/form-field/FormField.d.ts +0 -15
  137. package/dist/common/form-field/pure-field/FieldLayout.d.ts +0 -5
  138. package/dist/common/form-field/pure-field/FormikEnhance.d.ts +0 -1
  139. package/dist/common/form-field/pure-field/PureField.d.ts +0 -8
  140. package/dist/common/formik-field-touched/FormikFieldTouched.d.ts +0 -2
  141. package/dist/common/index.d.ts +0 -16
  142. package/dist/common/item/IssueActionDropdown.d.ts +0 -18
  143. package/dist/common/item-icon/ItemIcon.d.ts +0 -8
  144. package/dist/common/plugin/PluginComponents.d.ts +0 -17
  145. package/dist/common/plugin/PluginErrorContainer.d.ts +0 -15
  146. package/dist/common/plugin/PluginLoadComponent.d.ts +0 -27
  147. package/dist/common/search-select/PopoverPanel.d.ts +0 -4
  148. package/dist/common/search-select/SearchPopoverSelect.d.ts +0 -4
  149. package/dist/common/status-selector/index.d.ts +0 -9
  150. package/dist/common/structure/hooks.d.ts +0 -30
  151. package/dist/common/structure/index.d.ts +0 -11
  152. package/dist/common/structure/table-components/TableActionMenu.d.ts +0 -18
  153. package/dist/common/structure/table-components/TableColumnSettings.d.ts +0 -13
  154. package/dist/common/structure/table-components/TableEmpty.d.ts +0 -6
  155. package/dist/common/structure/table-components/TableTitleCell.d.ts +0 -16
  156. package/dist/common/structure/table-components/index.d.ts +0 -11
  157. package/dist/common/structure/table-components/tableCellMapping.d.ts +0 -23
  158. package/dist/common/structure/table-components/useCacheColumns.d.ts +0 -13
  159. package/dist/common/structure/table-components/useTableColumns.d.ts +0 -22
  160. package/dist/common/structure/table-components/useTableMenu.d.ts +0 -42
  161. package/dist/common/structure-table/Table.d.ts +0 -4
  162. package/dist/common/structure-table/components/Action.d.ts +0 -15
  163. package/dist/common/structure-table/components/Collapse.d.ts +0 -12
  164. package/dist/common/structure-table/components/CollapseIcon.d.ts +0 -6
  165. package/dist/common/structure-table/components/DraggableRow.d.ts +0 -5
  166. package/dist/common/structure-table/components/Handle.d.ts +0 -3
  167. package/dist/common/structure-table/components/Row.d.ts +0 -25
  168. package/dist/common/structure-table/components/index.d.ts +0 -6
  169. package/dist/common/structure-table/index.d.ts +0 -1
  170. package/dist/common/user-field/UserAvatar.d.ts +0 -13
  171. package/dist/common/user-field/UserField.d.ts +0 -15
  172. package/dist/common/user-field/index.d.ts +0 -2
  173. package/dist/common/utils.d.ts +0 -41
  174. package/dist/common/workflow/View.d.ts +0 -11
  175. package/dist/common/workflow/config.d.ts +0 -87
  176. package/dist/common/workflow/nodes/StartNode.d.ts +0 -10
  177. package/dist/common/workflow/nodes/TaskNode.d.ts +0 -12
  178. package/dist/common/workflow/nodes/index.d.ts +0 -2
  179. package/dist/fields/base-component/BaseLabel.d.ts +0 -10
  180. package/dist/fields/base-component/utils.d.ts +0 -4
  181. package/dist/fields/data-quote/util.d.ts +0 -9
  182. package/dist/fields/item-activity/BaseField.d.ts +0 -7
  183. package/dist/fields/item-activity/Comment.d.ts +0 -7
  184. package/dist/fields/item-level/hooks.d.ts +0 -15
  185. package/dist/fields/item-level/utils.d.ts +0 -25
  186. package/dist/icons/index.d.ts +0 -48
  187. package/dist/index.d.ts +0 -49
  188. package/dist/lib/ParentMessage.d.ts +0 -7
  189. package/dist/lib/apis/filter/iql.d.ts +0 -6
  190. package/dist/lib/apis/forest.d.ts +0 -2
  191. package/dist/lib/apis/groups/index.d.ts +0 -21
  192. package/dist/lib/apis/roles/index.d.ts +0 -11
  193. package/dist/lib/apis/screen/fields.d.ts +0 -21
  194. package/dist/lib/apis/screen/fieldsBehavior.d.ts +0 -10
  195. package/dist/lib/apis/screen/index.d.ts +0 -20
  196. package/dist/lib/contexts/LibraryProvider.d.ts +0 -18
  197. package/dist/lib/contexts/currentUserAndRoles.d.ts +0 -15
  198. package/dist/lib/contexts/index.d.ts +0 -7
  199. package/dist/lib/contexts/token.d.ts +0 -13
  200. package/dist/lib/contexts/users.d.ts +0 -11
  201. package/dist/lib/contexts/values.d.ts +0 -6
  202. package/dist/lib/customFields/hooks.d.ts +0 -24
  203. package/dist/lib/dataQuoteStore.d.ts +0 -2
  204. package/dist/lib/date.d.ts +0 -19
  205. package/dist/lib/dayjs.d.ts +0 -4
  206. package/dist/lib/env.d.ts +0 -2
  207. package/dist/lib/error/index.d.ts +0 -2
  208. package/dist/lib/error/log.d.ts +0 -13
  209. package/dist/lib/error/utils.d.ts +0 -13
  210. package/dist/lib/events.d.ts +0 -11
  211. package/dist/lib/fetch.d.ts +0 -49
  212. package/dist/lib/filters/filter-query/utils.d.ts +0 -18
  213. package/dist/lib/forest.d.ts +0 -60
  214. package/dist/lib/global.d.ts +0 -1111
  215. package/dist/lib/hooks/index.d.ts +0 -13
  216. package/dist/lib/hooks/useCurrentUser.d.ts +0 -3
  217. package/dist/lib/hooks/useCustomFields.d.ts +0 -9
  218. package/dist/lib/hooks/useDataQuoteStore.d.ts +0 -7
  219. package/dist/lib/hooks/useFieldTypes.d.ts +0 -9
  220. package/dist/lib/hooks/useFields.d.ts +0 -12
  221. package/dist/lib/hooks/useI18n.d.ts +0 -1
  222. package/dist/lib/hooks/useItemsInfinite.d.ts +0 -48
  223. package/dist/lib/hooks/useRemoteComponents.d.ts +0 -25
  224. package/dist/lib/hooks/useTenants.d.ts +0 -7
  225. package/dist/lib/hooks/useToken.d.ts +0 -3
  226. package/dist/lib/hooks/useUsers.d.ts +0 -8
  227. package/dist/lib/hooks/useWatchItemUpdate.d.ts +0 -32
  228. package/dist/lib/hooks/useWorkspaces.d.ts +0 -8
  229. package/dist/lib/i18n.d.ts +0 -24
  230. package/dist/lib/iql.d.ts +0 -31
  231. package/dist/lib/item/hooks.d.ts +0 -31
  232. package/dist/lib/item/utils.d.ts +0 -34
  233. package/dist/lib/kanban/hooks.d.ts +0 -8
  234. package/dist/lib/locales.d.ts +0 -4
  235. package/dist/lib/models.d.ts +0 -59
  236. package/dist/lib/parse.d.ts +0 -3
  237. package/dist/lib/path.d.ts +0 -4
  238. package/dist/lib/proxima-sdk/components/index.d.ts +0 -2
  239. package/dist/lib/proxima-sdk/hooks/index.d.ts +0 -4
  240. package/dist/lib/proxima-sdk/index.d.ts +0 -5
  241. package/dist/lib/proxima-sdk/lib/index.d.ts +0 -9
  242. package/dist/lib/proxima-sdk/schema/index.d.ts +0 -2
  243. package/dist/lib/regExp.d.ts +0 -11
  244. package/dist/lib/storage.d.ts +0 -7
  245. package/dist/lib/store.d.ts +0 -14
  246. package/dist/lib/types/index.d.ts +0 -3
  247. package/dist/lib/types/parse-models.d.ts +0 -6
  248. package/dist/lib/useInitialRecoilState.d.ts +0 -3
  249. package/dist/lib/useParseQuery.d.ts +0 -53
  250. package/dist/lib/usePluginManifest.d.ts +0 -33
  251. package/dist/lib/useUser.d.ts +0 -62
  252. package/dist/lib/useWatchApp.d.ts +0 -4
  253. package/dist/lib/useWorkspace.d.ts +0 -1
  254. package/dist/lib/users.d.ts +0 -3
  255. package/dist/lib/workflow.d.ts +0 -111
  256. package/dist/lib/workspace.d.ts +0 -2
  257. package/dist/locales/en/en_US.d.ts +0 -45
  258. package/dist/locales/en/package/application.d.ts +0 -73
  259. package/dist/locales/en/package/automation.d.ts +0 -303
  260. package/dist/locales/en/package/date.d.ts +0 -54
  261. package/dist/locales/en/package/fields.d.ts +0 -409
  262. package/dist/locales/en/package/filters.d.ts +0 -89
  263. package/dist/locales/en/package/formField.d.ts +0 -157
  264. package/dist/locales/en/package/global.d.ts +0 -318
  265. package/dist/locales/en/package/item.d.ts +0 -488
  266. package/dist/locales/en/package/itemTypes.d.ts +0 -154
  267. package/dist/locales/en/package/lib.d.ts +0 -127
  268. package/dist/locales/en/package/message.d.ts +0 -251
  269. package/dist/locales/en/package/pages.d.ts +0 -67
  270. package/dist/locales/en/package/permission.d.ts +0 -471
  271. package/dist/locales/en/package/placeholder.d.ts +0 -179
  272. package/dist/locales/en/package/plugin.d.ts +0 -20
  273. package/dist/locales/en/package/report.d.ts +0 -150
  274. package/dist/locales/en/package/reportPlugin.d.ts +0 -183
  275. package/dist/locales/en/package/screen.d.ts +0 -121
  276. package/dist/locales/en/package/sections.d.ts +0 -60
  277. package/dist/locales/en/package/settings.d.ts +0 -194
  278. package/dist/locales/en/package/sprint.d.ts +0 -52
  279. package/dist/locales/en/package/users.d.ts +0 -58
  280. package/dist/locales/en/package/validate.d.ts +0 -138
  281. package/dist/locales/en/package/views.d.ts +0 -383
  282. package/dist/locales/en/package/workflow.d.ts +0 -245
  283. package/dist/locales/en/package/workspace.d.ts +0 -342
  284. package/dist/locales/zh/package/application.d.ts +0 -73
  285. package/dist/locales/zh/package/automation.d.ts +0 -303
  286. package/dist/locales/zh/package/date.d.ts +0 -54
  287. package/dist/locales/zh/package/fields.d.ts +0 -409
  288. package/dist/locales/zh/package/filters.d.ts +0 -89
  289. package/dist/locales/zh/package/formField.d.ts +0 -162
  290. package/dist/locales/zh/package/global.d.ts +0 -318
  291. package/dist/locales/zh/package/item.d.ts +0 -489
  292. package/dist/locales/zh/package/itemTypes.d.ts +0 -153
  293. package/dist/locales/zh/package/lib.d.ts +0 -127
  294. package/dist/locales/zh/package/message.d.ts +0 -251
  295. package/dist/locales/zh/package/pages.d.ts +0 -67
  296. package/dist/locales/zh/package/permission.d.ts +0 -470
  297. package/dist/locales/zh/package/placeholder.d.ts +0 -172
  298. package/dist/locales/zh/package/plugin.d.ts +0 -20
  299. package/dist/locales/zh/package/report.d.ts +0 -150
  300. package/dist/locales/zh/package/reportPlugin.d.ts +0 -183
  301. package/dist/locales/zh/package/screen.d.ts +0 -116
  302. package/dist/locales/zh/package/sections.d.ts +0 -63
  303. package/dist/locales/zh/package/settings.d.ts +0 -192
  304. package/dist/locales/zh/package/sprint.d.ts +0 -52
  305. package/dist/locales/zh/package/users.d.ts +0 -58
  306. package/dist/locales/zh/package/validate.d.ts +0 -138
  307. package/dist/locales/zh/package/views.d.ts +0 -380
  308. package/dist/locales/zh/package/workflow.d.ts +0 -245
  309. package/dist/locales/zh/package/workspace.d.ts +0 -344
  310. package/dist/locales/zh/zh_CN.d.ts +0 -46
  311. package/dist/osui/index.d.ts +0 -8
@@ -1,62 +0,0 @@
1
- import { SWRResponse } from 'swr';
2
- import { ObjectId, RoleType, User as UserTyped } from '@/lib/types/models';
3
- import Parse from './parse';
4
- interface Params {
5
- redirectTo?: string;
6
- redirectIfFound?: boolean;
7
- }
8
- export type UserValue = UserTyped & {
9
- value?: ObjectId;
10
- };
11
- export type UserValueOption = {
12
- label: string;
13
- value: ObjectId;
14
- username: string;
15
- nickname: string;
16
- deleted: boolean;
17
- enabled: boolean;
18
- };
19
- export declare const userDataFormat: (user: UserValue) => UserValueOption;
20
- export declare const isEqualUsers: <T = UserValue>(prevUsers: T | T[], currentUsers: T | T[]) => boolean;
21
- /**
22
- * user hook
23
- */
24
- declare const useUser: (props?: Params) => SWRResponse<any, any>;
25
- /**
26
- * @deprecated
27
- */
28
- export declare const useCurrentUser: () => SWRResponse<Parse.User<Parse.Attributes>, any>;
29
- export declare const useRole: (workspaceKey?: string) => RoleType;
30
- export declare const useUsers: <T = UserTyped>() => [list: T[], loading: boolean];
31
- export declare const getRoleOptionsByName: (name: string | RegExp) => Promise<Record<'label' | 'value', string>[]>;
32
- export declare const getRolesOptionsByValues: (values: string[]) => Promise<Record<'label' | 'value', string>[]>;
33
- export declare const useGroups: () => [list: {
34
- objectId: string;
35
- name: string;
36
- }[], loading: boolean];
37
- export declare const getUserCustomFieldOptionsByName: (name: string | RegExp, type?: string | string[]) => Promise<Record<'label' | 'value', string>[]>;
38
- export declare const getUserCustomFieldOptionsByValues: (values: string[], type?: string | string[]) => Promise<Record<'label' | 'value', string>[]>;
39
- export default useUser;
40
- export type TreeItem = {
41
- id: string;
42
- children: TreeItem[];
43
- title: string;
44
- };
45
- export declare const getRolesTree: (keys?: string[]) => Promise<TreeItem[]>;
46
- export declare const getRolesData: (keyword?: string) => Promise<TreeItem[]>;
47
- export declare const getGroupsTree: (keys?: string[]) => Promise<TreeItem[]>;
48
- export declare const getGroupTreeSelect: (keyword?: string) => Promise<[TreeItem[], string[]]>;
49
- export declare const getWorkspaceUsers: (workspaceId: string, pageData: {
50
- pageIndex: number;
51
- pageSize: number;
52
- keyWord: string;
53
- }) => Promise<[Parse.Role, Parse.User[], number]>;
54
- export declare const getRoles: (keyword?: string) => Promise<{
55
- objectId: string;
56
- name: string;
57
- }[]>;
58
- /** 用户被删除 */
59
- export declare const isUserDeleted: (user: UserTyped) => boolean;
60
- /** 用户被禁用 */
61
- export declare const isUserDisabled: (user: UserTyped) => boolean;
62
- export declare const generateUserDisplayName: (user: UserTyped, onlyNickname?: boolean) => string;
@@ -1,4 +0,0 @@
1
- import { ConnectionType } from './hooks/useWatchItemUpdate';
2
- export declare function useWatchApp(sessionToken: string, fn: () => void): Promise<{
3
- status: ConnectionType;
4
- }>;
@@ -1 +0,0 @@
1
- export declare const useGetWorkspaceId: (workspaceKey: string) => string;
@@ -1,3 +0,0 @@
1
- import { User as UserTyped } from '@/lib/types/models';
2
- export declare const getUserOptionsByName: (_username: string, optionAdapter?: (user: UserTyped) => any) => Promise<Record<'label' | 'value', string>[]>;
3
- export declare const getUserOptionsByValues: (values: string[], optionAdapter?: (user: UserTyped) => any) => Promise<Record<'label' | 'value', string>[]>;
@@ -1,111 +0,0 @@
1
- import { ItemResultProps } from './types/item';
2
- import { ResultType, TransitionProps } from './types/workflow';
3
- export declare const StatusTypeKey: {
4
- Start: string;
5
- InProgress: string;
6
- Finished: string;
7
- };
8
- export declare enum StatusType {
9
- Start = "\u672A\u5F00\u59CB",
10
- InProgress = "\u8FDB\u884C\u4E2D",
11
- Finished = "\u5DF2\u5B8C\u6210"
12
- }
13
- export declare const EmptyConditionList: {
14
- key: string;
15
- name: string;
16
- }[];
17
- export declare const NumberConditions: {
18
- equalTo: {
19
- key: string;
20
- name: string;
21
- };
22
- greaterThan: {
23
- key: string;
24
- name: string;
25
- };
26
- greaterThanOrEqualTo: {
27
- key: string;
28
- name: string;
29
- };
30
- lessThan: {
31
- key: string;
32
- name: string;
33
- };
34
- lessThanOrEqualTo: {
35
- key: string;
36
- name: string;
37
- };
38
- notEqualTo: {
39
- key: string;
40
- name: string;
41
- };
42
- isEmpty: {
43
- key: string;
44
- name: string;
45
- };
46
- notEmpty: {
47
- key: string;
48
- name: string;
49
- };
50
- };
51
- export declare const StringConditions: {
52
- equalTo: {
53
- key: string;
54
- name: string;
55
- };
56
- notEqualTo: {
57
- key: string;
58
- name: string;
59
- };
60
- isEmpty: {
61
- key: string;
62
- name: string;
63
- };
64
- notEmpty: {
65
- key: string;
66
- name: string;
67
- };
68
- };
69
- export declare const DropdownConditions: {
70
- containedIn: {
71
- key: string;
72
- name: string;
73
- not: string;
74
- };
75
- notContainedIn: {
76
- key: string;
77
- name: string;
78
- not: string;
79
- };
80
- isEmpty: {
81
- key: string;
82
- name: string;
83
- };
84
- notEmpty: {
85
- key: string;
86
- name: string;
87
- };
88
- };
89
- export declare const CustomFieldComponentTypes: {
90
- Date: string;
91
- Dropdown: string;
92
- User: string;
93
- Assignee: string;
94
- Number: string;
95
- LongText: string;
96
- Text: string;
97
- File: string;
98
- };
99
- export declare function isEmptyCondition(key: string): boolean;
100
- /** 校验用户是否有状态流转操作权限 */
101
- export declare function checkUserPermission(transition: TransitionProps, userId: string, roleIds: string[], groupIds: string[], values: Record<string, any>): ResultType;
102
- /** 校验事项 value 字段是否可流转 */
103
- export declare function checkItemCondition(transition: TransitionProps, item: ItemResultProps): ResultType;
104
- /** 校验事项状态是否可流转 */
105
- export declare function checkTransition(item: ItemResultProps, transition: TransitionProps, userId: string, roleIds: string[], groupIds: string[]): ResultType;
106
- export declare function checkTransitionScript(scriptText: string, params: {
107
- itemId: string;
108
- itemType: string;
109
- workspace: string;
110
- status: string;
111
- }, sessionToken: string): Promise<ResultType>;
@@ -1,2 +0,0 @@
1
- import { Workspace as WorkspaceTyped } from '@/lib/types/models';
2
- export declare function getWorkspaceSchemeByIdOrKey(value: string, include?: string): Promise<WorkspaceTyped>;
@@ -1,45 +0,0 @@
1
- export namespace en {
2
- export namespace index {
3
- const hello: string;
4
- const welcome: string;
5
- }
6
- export const locale: {
7
- current: string;
8
- zh: string;
9
- 'zh-CN': string;
10
- 'zh-HK': string;
11
- 'zh-TW': string;
12
- en: string;
13
- 'en-US': string;
14
- };
15
- export namespace menus {
16
- const dashboard: string;
17
- const workspaces: string;
18
- const create: string;
19
- }
20
- export { global };
21
- export { date };
22
- export { formField };
23
- export { message };
24
- export { validate };
25
- export { placeholder };
26
- export { reportPlugin };
27
- export { sections };
28
- export { lib };
29
- export { views };
30
- export { pages };
31
- export { screen };
32
- }
33
- export default en;
34
- import global from "./package/global";
35
- import date from "./package/date";
36
- import formField from "./package/formField";
37
- import message from "./package/message";
38
- import validate from "./package/validate";
39
- import placeholder from "./package/placeholder";
40
- import reportPlugin from "./package/reportPlugin";
41
- import sections from "./package/sections";
42
- import lib from "./package/lib";
43
- import views from "./package/views";
44
- import pages from "./package/pages";
45
- import screen from "./package/screen";
@@ -1,73 +0,0 @@
1
- export default application;
2
- declare namespace application {
3
- namespace myapps {
4
- const title: string;
5
- }
6
- namespace market {
7
- const title_1: string;
8
- export { title_1 as title };
9
- export namespace AppDetail {
10
- const title_2: string;
11
- export { title_2 as title };
12
- export const notFind: string;
13
- }
14
- export const enabledVersion: string;
15
- }
16
- namespace apps {
17
- namespace _default {
18
- const setRuntimeVariable: string;
19
- const applicationMarket: string;
20
- const uploadApplication: string;
21
- const managementApplication: string;
22
- const appliedWorkspaceScheme: string;
23
- const description: string;
24
- const relateWorkspaceScheme: string;
25
- const itemDetail: string;
26
- const compileBuild: string;
27
- const marketGridItemType: string;
28
- const disabled: string;
29
- const wokspaceName: string;
30
- const relateWorkspace: string;
31
- const isBindingWorkspace: string;
32
- }
33
- export { _default as default };
34
- export namespace columns {
35
- const version: string;
36
- const applicationName: string;
37
- const workspaceBindingStatus: string;
38
- const isBinding: string;
39
- const notBingding: string;
40
- const installationSource: string;
41
- const installManuallyText: string;
42
- const enabledApplicationVersion: string;
43
- const workspaceSchemeName: string;
44
- namespace active {
45
- const title_3: string;
46
- export { title_3 as title };
47
- export const manifest: string;
48
- export const createdBy: string;
49
- export const updatedAt: string;
50
- }
51
- }
52
- export namespace modal {
53
- const title_4: string;
54
- export { title_4 as title };
55
- export const content: string;
56
- export const updateApplication: string;
57
- export const viewTrigger: string;
58
- export const appUuid: string;
59
- export const appKey: string;
60
- }
61
- export namespace views {
62
- namespace _default_1 {
63
- const setEnvironment: string;
64
- const viewWebTrigger: string;
65
- const selectFile: string;
66
- }
67
- export { _default_1 as default };
68
- export namespace alert {
69
- const message: string;
70
- }
71
- }
72
- }
73
- }
@@ -1,303 +0,0 @@
1
- export default automation;
2
- declare namespace automation {
3
- namespace _default {
4
- const cron: string;
5
- const selectOperation: string;
6
- const inputContent: string;
7
- const inputErrorTip: string;
8
- const title: string;
9
- const setAutomation: string;
10
- const tabBarInfo: string;
11
- const scenes: string;
12
- const lastDay: string;
13
- const utilsWords: string[];
14
- const defaultView: string;
15
- const itemGroupList: string;
16
- const managementAutomation: string;
17
- const createAutomationBtn: string;
18
- const fieldSelect: string;
19
- const newAddChildItem: string;
20
- const addChildItem: string;
21
- namespace view {
22
- export namespace _switch {
23
- namespace NodeContainer {
24
- const title_1: string;
25
- export { title_1 as title };
26
- export const desc: string;
27
- }
28
- }
29
- export { _switch as switch };
30
- export namespace automationDetail {
31
- namespace nodes {
32
- const name: string;
33
- }
34
- const newNodeName: string;
35
- namespace modal {
36
- const title_2: string;
37
- export { title_2 as title };
38
- export const content: string;
39
- }
40
- namespace header {
41
- const back: string;
42
- }
43
- namespace panel {
44
- const basicInfo: string;
45
- }
46
- }
47
- }
48
- }
49
- export { _default as default };
50
- export namespace modal_1 {
51
- const title_3: string;
52
- export { title_3 as title };
53
- }
54
- export { modal_1 as modal };
55
- export namespace utils {
56
- namespace ChangeLogMapping {
57
- const UPDATE: string;
58
- const DISABLE: string;
59
- const ENABLE: string;
60
- const CREATE: string;
61
- const DELETE: string;
62
- }
63
- namespace NodeDescFun {
64
- const WORKSPACE: string;
65
- const ITEM_TYPE: string;
66
- }
67
- namespace SUPPORT_REQUEST {
68
- const EXECUTOR: string;
69
- const CURRENT_ITEM: string;
70
- const fieldsName: string;
71
- const CUSTOM_SCHEME: string;
72
- const select: string;
73
- const body: string;
74
- }
75
- }
76
- export namespace common {
77
- const _default_1: {};
78
- export { _default_1 as default };
79
- export namespace actionContinueToFailField {
80
- const title_4: string;
81
- export { title_4 as title };
82
- }
83
- export namespace alertMore {
84
- export namespace header_1 {
85
- const next: string;
86
- const hide: string;
87
- const show: string;
88
- }
89
- export { header_1 as header };
90
- }
91
- export namespace automateLog {
92
- const refresh: string;
93
- const changeLog: string;
94
- const runningLog: string;
95
- }
96
- export namespace automationLogView {
97
- const logDetail: string;
98
- const user: string;
99
- }
100
- export namespace automationRunningCom {
101
- namespace _default_2 {
102
- const passItem: string;
103
- const noMatch: string;
104
- const noMatchRelateItem: string;
105
- }
106
- export { _default_2 as default };
107
- export const runningContentDesc: string;
108
- }
109
- export namespace changeLog_1 {
110
- const _default_3: {};
111
- export { _default_3 as default };
112
- export namespace columns {
113
- export const createdAt: string;
114
- export const type: string;
115
- const name_1: string;
116
- export { name_1 as name };
117
- export namespace operation {
118
- const title_5: string;
119
- export { title_5 as title };
120
- export const tip: string[];
121
- }
122
- }
123
- }
124
- export { changeLog_1 as changeLog };
125
- export namespace cloneItemExtraFields {
126
- const _default_4: {};
127
- export { _default_4 as default };
128
- export namespace formField {
129
- const linkType: string;
130
- const includeLinks: string;
131
- const includeFiles: string;
132
- }
133
- }
134
- }
135
- export namespace fields {
136
- const name_2: string;
137
- export { name_2 as name };
138
- export const userField: string;
139
- }
140
- export namespace nodeComponent {
141
- namespace ActionCollectItem {
142
- const desc_1: string;
143
- export { desc_1 as desc };
144
- }
145
- namespace actionCreateSubItem {
146
- namespace _default_5 {
147
- const updateTitle: string;
148
- }
149
- export { _default_5 as default };
150
- }
151
- namespace actionItemDelete {
152
- namespace Alert {
153
- const message: string;
154
- }
155
- }
156
- namespace actionNotificationSend {
157
- namespace Tooltip {
158
- const title_6: string;
159
- export { title_6 as title };
160
- }
161
- namespace Panel {
162
- const header_2: string;
163
- export { header_2 as header };
164
- const content_1: string[];
165
- export { content_1 as content };
166
- }
167
- }
168
- namespace actionWebRequest {
169
- namespace _default_6 {
170
- const desc_2: string;
171
- export { desc_2 as desc };
172
- }
173
- export { _default_6 as default };
174
- export namespace FormField {
175
- const key: string;
176
- const basic: string;
177
- const system: string;
178
- }
179
- export namespace Panel_1 {
180
- const header_3: string;
181
- export { header_3 as header };
182
- }
183
- export { Panel_1 as Panel };
184
- }
185
- namespace branchAdvancedItem {
186
- export namespace formField_1 {
187
- const functionStr: string;
188
- }
189
- export { formField_1 as formField };
190
- }
191
- namespace branchItem {
192
- const _default_7: {};
193
- export { _default_7 as default };
194
- export namespace NodeContainer_1 {
195
- export namespace header_4 {
196
- const desc_3: string;
197
- export { desc_3 as desc };
198
- }
199
- export { header_4 as header };
200
- }
201
- export { NodeContainer_1 as NodeContainer };
202
- }
203
- namespace conditionIfElse {
204
- export namespace Panel_2 {
205
- const header_5: string;
206
- export { header_5 as header };
207
- }
208
- export { Panel_2 as Panel };
209
- export const ConditionAdd: string;
210
- }
211
- namespace conditionIfUsers {
212
- export namespace combineOperation {
213
- const all: string;
214
- const any: string;
215
- }
216
- const desc_4: string[];
217
- export { desc_4 as desc };
218
- export const addButton: string;
219
- }
220
- namespace cronField {
221
- const header_6: string[];
222
- export { header_6 as header };
223
- export const basicByDay: string;
224
- }
225
- namespace notMatch {
226
- const description: string;
227
- }
228
- }
229
- export namespace AutomationList {
230
- export namespace modal_2 {
231
- export namespace _delete {
232
- const title_7: string;
233
- export { title_7 as title };
234
- const content_2: string;
235
- export { content_2 as content };
236
- }
237
- export { _delete as delete };
238
- export namespace copy {
239
- const title_8: string;
240
- export { title_8 as title };
241
- const content_3: string;
242
- export { content_3 as content };
243
- }
244
- }
245
- export { modal_2 as modal };
246
- }
247
- export namespace AutomationScenes {
248
- namespace _default_8 {
249
- export namespace message_1 {
250
- const tip_1: string;
251
- export { tip_1 as tip };
252
- export const noAuto: string;
253
- }
254
- export { message_1 as message };
255
- }
256
- export { _default_8 as default };
257
- export namespace modal_3 {
258
- const title_9: string;
259
- export { title_9 as title };
260
- const content_4: string;
261
- export { content_4 as content };
262
- const tip_2: string[];
263
- export { tip_2 as tip };
264
- export const deleteAllAutomation: string;
265
- export const moveAutomation: string;
266
- }
267
- export { modal_3 as modal };
268
- }
269
- export namespace BasicInfo {
270
- namespace _default_9 {
271
- const title_10: string;
272
- export { title_10 as title };
273
- export namespace message_2 {
274
- const name_3: string;
275
- export { name_3 as name };
276
- export const actor: string;
277
- export const workspaces: string;
278
- }
279
- export { message_2 as message };
280
- }
281
- export { _default_9 as default };
282
- export namespace actorLabel {
283
- export const label: string;
284
- const desc_5: string;
285
- export { desc_5 as desc };
286
- }
287
- export namespace workspaceLabel {
288
- const label_1: string;
289
- export { label_1 as label };
290
- const desc_6: string;
291
- export { desc_6 as desc };
292
- }
293
- const FormField_1: {};
294
- export { FormField_1 as FormField };
295
- }
296
- export namespace SwitchMainType {
297
- namespace _default_10 {
298
- const message_3: string[];
299
- export { message_3 as message };
300
- }
301
- export { _default_10 as default };
302
- }
303
- }
@@ -1,54 +0,0 @@
1
- export namespace date {
2
- const time: string;
3
- const dateTime: string;
4
- const day: string;
5
- const date: string;
6
- const week: string;
7
- const month: string;
8
- const year: string;
9
- const absoluteTime: string;
10
- const relativeTime: string;
11
- namespace format {
12
- const week_1: string;
13
- export { week_1 as week };
14
- }
15
- const Sunday: string;
16
- const Monday: string;
17
- const Tuesday: string;
18
- const Wednesday: string;
19
- const Thursday: string;
20
- const Friday: string;
21
- const Saturday: string;
22
- const every: string;
23
- const hours: string;
24
- const minutes: string;
25
- const startDate: string;
26
- const startTime: string;
27
- const endDate: string;
28
- const endTime: string;
29
- const estimatedEndTime: string;
30
- const dateFormat: string;
31
- const pickerType: string;
32
- const dateRange: string;
33
- const formatTime: string;
34
- const duration: string;
35
- namespace COMPUTES_DATE {
36
- const LAST_THIRTY_DAYS: string;
37
- const LAST_SEVEN_DAYS: string;
38
- const THIS_WEEK: string;
39
- const THIS_MONTH: string;
40
- const CUSTOM_TIME: string;
41
- }
42
- const today: string;
43
- const latestWeek: string;
44
- const latestMouth: string;
45
- const LastThreeMonths: string;
46
- const relativeTimeDesc: string;
47
- function diffTime({ days, hours, minutes, seconds }: {
48
- days: any;
49
- hours: any;
50
- minutes: any;
51
- seconds: any;
52
- }): string;
53
- }
54
- export default date;