@giteeteam/apps-team-components 1.3.0-alpha.1 → 1.3.0-alpha.2

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 (219) hide show
  1. package/dist/components/common/EmptyField.d.ts +0 -1
  2. package/dist/components/common/EmptyField.js +7 -5
  3. package/dist/components/common/PriceTag.js +11 -8
  4. package/dist/components/common/expand-component/index.d.ts +0 -1
  5. package/dist/components/common/expand-component/index.js +12 -10
  6. package/dist/components/common/expand-component/style.js +4 -2
  7. package/dist/components/common/item-icon/ItemIcon.d.ts +0 -1
  8. package/dist/components/common/item-icon/ItemIcon.js +6 -4
  9. package/dist/components/common/overflow-tooltip/BaseOverflowTooltip.d.ts +0 -1
  10. package/dist/components/common/overflow-tooltip/BaseOverflowTooltip.js +9 -6
  11. package/dist/components/common/overflow-tooltip/OverflowTooltip.js +9 -6
  12. package/dist/components/common/overflow-tooltip/SimpleOverflowToolTip.js +8 -5
  13. package/dist/components/common/overflow-tooltip/style/index.js +5 -3
  14. package/dist/components/common/style/global.js +3 -1
  15. package/dist/components/common/style/mixin.js +6 -3
  16. package/dist/components/common/user-field/UserAvatar.js +8 -6
  17. package/dist/components/common/user-field/style/index.js +5 -3
  18. package/dist/components/common/utils.js +13 -9
  19. package/dist/components/default-empty-icon/config.js +11 -6
  20. package/dist/components/default-empty-icon/index.js +10 -9
  21. package/dist/components/default-empty-icon/style.js +15 -12
  22. package/dist/components/default-empty-icon/types.js +3 -1
  23. package/dist/components/field-behavior/fields/type.js +5 -2
  24. package/dist/components/fields/actors/BaseField.js +5 -2
  25. package/dist/components/fields/actors/ReadView.d.ts +0 -1
  26. package/dist/components/fields/actors/ReadView.js +8 -6
  27. package/dist/components/fields/ancestor/ReadView.js +8 -6
  28. package/dist/components/fields/ancestor/utils.js +4 -12
  29. package/dist/components/fields/assignee/ReadView.d.ts +0 -1
  30. package/dist/components/fields/assignee/ReadView.js +13 -11
  31. package/dist/components/fields/base-component/utils.js +3 -1
  32. package/dist/components/fields/bind-workspace/ReadView.d.ts +0 -1
  33. package/dist/components/fields/bind-workspace/ReadView.js +11 -9
  34. package/dist/components/fields/bind-workspace/hooks.js +7 -4
  35. package/dist/components/fields/bind-workspace/style/index.js +3 -1
  36. package/dist/components/fields/cascade/ReadView.js +8 -6
  37. package/dist/components/fields/cascade/utils.js +4 -3
  38. package/dist/components/fields/checkbox/ReadView.d.ts +0 -1
  39. package/dist/components/fields/checkbox/ReadView.js +7 -5
  40. package/dist/components/fields/created-at/ReadView.js +10 -8
  41. package/dist/components/fields/created-by/ReadView.d.ts +0 -1
  42. package/dist/components/fields/created-by/ReadView.js +11 -9
  43. package/dist/components/fields/data-quote/ReadView.js +12 -10
  44. package/dist/components/fields/data-quote/utils.js +5 -3
  45. package/dist/components/fields/date/ReadView.d.ts +0 -1
  46. package/dist/components/fields/date/ReadView.js +8 -6
  47. package/dist/components/fields/dropdown/BaseField.js +42 -40
  48. package/dist/components/fields/dropdown/Cell.d.ts +0 -1
  49. package/dist/components/fields/dropdown/Cell.js +6 -4
  50. package/dist/components/fields/dropdown/ReadView.d.ts +0 -1
  51. package/dist/components/fields/dropdown/ReadView.js +10 -8
  52. package/dist/components/fields/dropdown/data.d.ts +1 -1
  53. package/dist/components/fields/dropdown/data.js +6 -3
  54. package/dist/components/fields/dropdown/hook.d.ts +0 -1
  55. package/dist/components/fields/dropdown/hook.js +11 -8
  56. package/dist/components/fields/dropdown/style.js +21 -18
  57. package/dist/components/fields/file/ReadView.d.ts +0 -1
  58. package/dist/components/fields/file/ReadView.js +7 -5
  59. package/dist/components/fields/formula/ReadView.d.ts +0 -1
  60. package/dist/components/fields/formula/ReadView.js +7 -5
  61. package/dist/components/fields/hooks/useViewClass.js +4 -2
  62. package/dist/components/fields/hyper-link/ReadView.d.ts +0 -1
  63. package/dist/components/fields/hyper-link/ReadView.js +8 -6
  64. package/dist/components/fields/hyper-link/style/index.js +7 -4
  65. package/dist/components/fields/item-group/ReadView.d.ts +0 -1
  66. package/dist/components/fields/item-group/ReadView.js +6 -4
  67. package/dist/components/fields/item-type/ItemTypeIcon.js +15 -17
  68. package/dist/components/fields/item-type/ReadView.d.ts +0 -1
  69. package/dist/components/fields/item-type/ReadView.js +7 -5
  70. package/dist/components/fields/item-type/style/index.js +3 -1
  71. package/dist/components/fields/key/ReadView.d.ts +0 -1
  72. package/dist/components/fields/key/ReadView.js +7 -5
  73. package/dist/components/fields/long-text/ReadView.d.ts +0 -1
  74. package/dist/components/fields/long-text/ReadView.js +8 -6
  75. package/dist/components/fields/long-text/style/index.js +3 -1
  76. package/dist/components/fields/number/BaseField.js +5 -2
  77. package/dist/components/fields/number/ReadView.d.ts +0 -1
  78. package/dist/components/fields/number/ReadView.js +8 -6
  79. package/dist/components/fields/priority/ReadView.js +12 -10
  80. package/dist/components/fields/priority/style/index.js +11 -8
  81. package/dist/components/fields/radio/ReadView.d.ts +0 -1
  82. package/dist/components/fields/radio/ReadView.js +8 -6
  83. package/dist/components/fields/repo-files/ReadView.js +8 -6
  84. package/dist/components/fields/repo-files/utils.js +5 -3
  85. package/dist/components/fields/reporter/ReadView.d.ts +0 -1
  86. package/dist/components/fields/reporter/ReadView.js +11 -9
  87. package/dist/components/fields/script/BaseField.js +4 -1
  88. package/dist/components/fields/script/ReadView.d.ts +0 -1
  89. package/dist/components/fields/script/ReadView.js +10 -8
  90. package/dist/components/fields/sprint/ReadView.js +7 -5
  91. package/dist/components/fields/status/Cell.js +8 -6
  92. package/dist/components/fields/status/Field.d.ts +0 -1
  93. package/dist/components/fields/status/ReadView.js +10 -8
  94. package/dist/components/fields/status/SelectFlowHandler.js +15 -12
  95. package/dist/components/fields/status/SelectTransition.js +13 -10
  96. package/dist/components/fields/status/Transition.js +18 -15
  97. package/dist/components/fields/status/TransitionButton.js +17 -14
  98. package/dist/components/fields/status/TransitionPanel.js +14 -11
  99. package/dist/components/fields/status/View.js +11 -8
  100. package/dist/components/fields/status/style/index.js +36 -59
  101. package/dist/components/fields/story-point/ReadView.d.ts +0 -1
  102. package/dist/components/fields/story-point/ReadView.js +6 -4
  103. package/dist/components/fields/tag/ReadView.js +10 -8
  104. package/dist/components/fields/tag/style/index.js +3 -1
  105. package/dist/components/fields/team/ReadView.js +10 -8
  106. package/dist/components/fields/team/style/index.js +4 -2
  107. package/dist/components/fields/text/BaseField.d.ts +0 -1
  108. package/dist/components/fields/text/ReadView.js +8 -6
  109. package/dist/components/fields/tree/ReadView.js +10 -8
  110. package/dist/components/fields/tree/utils.js +5 -3
  111. package/dist/components/fields/updated-at/ReadView.js +10 -8
  112. package/dist/components/fields/updated-by/ReadView.d.ts +0 -1
  113. package/dist/components/fields/updated-by/ReadView.js +11 -9
  114. package/dist/components/fields/user/ReadView.d.ts +0 -1
  115. package/dist/components/fields/user/ReadView.js +11 -9
  116. package/dist/components/fields/user/style/index.js +7 -4
  117. package/dist/components/fields/user-group/BaseField.d.ts +0 -1
  118. package/dist/components/fields/user-group/ReadView.js +11 -13
  119. package/dist/components/fields/version/ReadView.js +8 -6
  120. package/dist/components/fields/workspace/ReadView.d.ts +0 -1
  121. package/dist/components/fields/workspace/ReadView.js +10 -8
  122. package/dist/components/filters/filter-search/utils.js +6 -6
  123. package/dist/components/item/hooks.js +5 -2
  124. package/dist/components/table-components/EditTableCell.js +6 -3
  125. package/dist/components/table-components/index.js +14 -11
  126. package/dist/components/table-components/style/index.js +3 -1
  127. package/dist/components/table-components/utils.js +49 -46
  128. package/dist/icons/SyncIconFont.js +7 -5
  129. package/dist/icons/createFromIconFontClass.js +3 -1
  130. package/dist/icons/empty-icon/index.d.ts +8 -1
  131. package/dist/icons/empty-icon/large-item@2x.png.js +3 -0
  132. package/dist/icons/empty-icon/large-workspace@2x.png.js +3 -0
  133. package/dist/icons/empty-icon/small-default@2x.png.js +3 -0
  134. package/dist/icons/index.d.ts +1 -1
  135. package/dist/icons/index.js +37 -35
  136. package/dist/icons/style/index.js +4 -2
  137. package/dist/icons/svg/ArrowBack.svg.js +3 -0
  138. package/dist/icons/svg/Done.svg.js +3 -0
  139. package/dist/icons/svg/DottedCircle.svg.js +3 -0
  140. package/dist/icons/svg/HollowCircle.svg.js +3 -0
  141. package/dist/icons/svg/Search.svg.js +3 -0
  142. package/dist/icons/svg/Workflow.svg.js +3 -0
  143. package/dist/index.js +47 -47
  144. package/dist/lib/app/utils.d.ts +0 -1
  145. package/dist/lib/app/utils.js +4 -2
  146. package/dist/lib/array.js +5 -44
  147. package/dist/lib/config.js +8 -6
  148. package/dist/lib/constants/code.js +3 -1
  149. package/dist/lib/constants/field.js +5 -2
  150. package/dist/lib/contexts/antdConfig.js +10 -7
  151. package/dist/lib/contexts/currentUser.js +7 -4
  152. package/dist/lib/contexts/currentWorkspace.js +7 -4
  153. package/dist/lib/contexts/datetimeFormat.js +7 -4
  154. package/dist/lib/contexts/index.js +16 -13
  155. package/dist/lib/contexts/itemConfig.js +7 -4
  156. package/dist/lib/contexts/teamConfig.js +8 -5
  157. package/dist/lib/contexts/tenant.js +7 -4
  158. package/dist/lib/contexts/workflowConfig.js +7 -4
  159. package/dist/lib/dataType.js +4 -5
  160. package/dist/lib/date.js +11 -52
  161. package/dist/lib/dayjs.js +2 -1
  162. package/dist/lib/error/log.js +7 -4
  163. package/dist/lib/error/utils.d.ts +1 -1
  164. package/dist/lib/error/utils.js +8 -20
  165. package/dist/lib/error/withServerError.js +3 -1
  166. package/dist/lib/fetch.js +23 -54
  167. package/dist/lib/global.js +16 -14
  168. package/dist/lib/hooks/useAntdConfig.js +4 -2
  169. package/dist/lib/hooks/useCurrentUser.js +4 -2
  170. package/dist/lib/hooks/useCurrentWorkspace.js +4 -2
  171. package/dist/lib/hooks/useDataQuoteStore.js +8 -5
  172. package/dist/lib/hooks/useDateTimeFormatType.js +4 -2
  173. package/dist/lib/hooks/useI18n.d.ts +1 -1
  174. package/dist/lib/hooks/useI18n.js +4 -2
  175. package/dist/lib/hooks/useItemConfig.js +4 -2
  176. package/dist/lib/hooks/useTeamConfig.js +4 -2
  177. package/dist/lib/hooks/useTenant.js +4 -2
  178. package/dist/lib/hooks/useWorkflowConfig.js +4 -2
  179. package/dist/lib/i18n.js +6 -3
  180. package/dist/lib/icons/utils.js +10 -9
  181. package/dist/lib/isInOne.js +2 -1
  182. package/dist/lib/number.js +3 -1
  183. package/dist/lib/path.d.ts +2 -2
  184. package/dist/lib/path.js +9 -6
  185. package/dist/lib/regExp.js +3 -1
  186. package/dist/lib/router.js +4 -1
  187. package/dist/lib/storage.js +4 -39
  188. package/dist/lib/store/dataQuoteStore.js +5 -2
  189. package/dist/lib/swr/constants.js +4 -2
  190. package/dist/lib/swr/hooks.js +6 -3
  191. package/dist/lib/swr/throttleWithCache.js +7 -5
  192. package/dist/lib/throttleFetch.js +4 -2
  193. package/dist/lib/useConfig.js +9 -6
  194. package/dist/lib/useUser.js +9 -6
  195. package/dist/lib/users.js +5 -2
  196. package/dist/lib/workflow.js +21 -20
  197. package/dist/locales/index.js +5 -3
  198. package/dist/style/common.js +11 -24
  199. package/dist/style/global.js +3 -1
  200. package/package.json +8 -2
  201. package/dist/components/fields/base-component/types.js +0 -1
  202. package/dist/components/fields/hooks/useParamsAdapter.js +0 -1
  203. package/dist/components/fields/radio/BaseField.js +0 -1
  204. package/dist/components/fields/status/Field.js +0 -1
  205. package/dist/components/fields/tag/BaseField.js +0 -1
  206. package/dist/components/fields/text/BaseField.js +0 -1
  207. package/dist/components/fields/tree/BaseField.js +0 -1
  208. package/dist/components/fields/tree/types.js +0 -1
  209. package/dist/components/fields/types.js +0 -1
  210. package/dist/components/fields/user-group/ActionCell.js +0 -1
  211. package/dist/components/fields/user-group/BaseField.js +0 -1
  212. package/dist/icons/empty-icon/index.js +0 -8
  213. package/dist/icons/svg/ArrowBack.svg +0 -1
  214. package/dist/icons/svg/Done.svg +0 -1
  215. package/dist/icons/svg/DottedCircle.svg +0 -7
  216. package/dist/icons/svg/HollowCircle.svg +0 -6
  217. package/dist/icons/svg/Search.svg +0 -1
  218. package/dist/icons/svg/Workflow.svg +0 -12
  219. package/dist/lib/error/index.js +0 -2
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface EmptyFieldProps {
3
2
  readonly?: boolean;
4
3
  isUser?: boolean;
@@ -1,8 +1,10 @@
1
- import { jsx as _jsx } from "@emotion/react/jsx-runtime";
2
- import { i18n } from '../../lib/i18n';
3
- import { gray6 } from '../../style/common';
1
+ import { jsx } from '@emotion/react/jsx-runtime';
2
+ import { i18n } from '../../lib/i18n.js';
3
+ import { gray6 } from '../../style/common.js';
4
+
4
5
  const EmptyField = props => {
5
6
  const { readonly, isUser } = props;
6
- return (_jsx("span", { style: { color: `var(--theme-disabled-color, ${gray6})` }, children: readonly ? '-' : i18n.t(`views.common.emptyField.${isUser ? 'user' : 'null'}`) }));
7
+ return (jsx("span", { style: { color: `var(--theme-disabled-color, ${gray6})` }, children: readonly ? '-' : i18n.t(`views.common.emptyField.${isUser ? 'user' : 'null'}`) }));
7
8
  };
8
- export default EmptyField;
9
+
10
+ export { EmptyField as default };
@@ -1,18 +1,19 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
1
+ import { jsx, jsxs } from '@emotion/react/jsx-runtime';
2
2
  import { useMemo } from 'react';
3
3
  import { ClassNames } from '@emotion/react';
4
- import { i18n } from '../../lib/i18n';
5
- import SimpleOverflowToolTip from './overflow-tooltip/SimpleOverflowToolTip';
6
- export const containerStyle = `
4
+ import { i18n } from '../../lib/i18n.js';
5
+ import SimpleOverflowToolTip from './overflow-tooltip/SimpleOverflowToolTip.js';
6
+
7
+ const containerStyle = `
7
8
  display: inline-flex;
8
9
  align-items: center;
9
10
  max-width: 100%;
10
11
  `;
11
- export const textStyle = `
12
+ const textStyle = `
12
13
  flex: 1;
13
14
  width: 0;
14
15
  `;
15
- export const tagStyle = `
16
+ const tagStyle = `
16
17
  height: 18px;
17
18
  padding: 0 4px;
18
19
  margin-left: 8px;
@@ -24,7 +25,7 @@ export const tagStyle = `
24
25
  border-radius: 5px 0;
25
26
  white-space: nowrap;
26
27
  `;
27
- export const PriceTag = ({ text, className, edition, expired }) => {
28
+ const PriceTag = ({ text, className, edition, expired }) => {
28
29
  const isTagVisible = useMemo(() => {
29
30
  if (edition === 'ee') {
30
31
  return false;
@@ -34,5 +35,7 @@ export const PriceTag = ({ text, className, edition, expired }) => {
34
35
  }
35
36
  return expired;
36
37
  }, [edition, expired]);
37
- return isTagVisible ? (_jsx(ClassNames, { children: ({ cx, css }) => (_jsxs("span", { className: cx(css(containerStyle), className), children: [_jsx(SimpleOverflowToolTip, { title: typeof text === 'string' ? text : null, children: _jsx("span", { className: css(textStyle), children: text }) }), _jsx("span", { className: css(tagStyle), children: i18n.t('components.priceTag.pro') })] })) })) : (text);
38
+ return isTagVisible ? (jsx(ClassNames, { children: ({ cx, css }) => (jsxs("span", { className: cx(css(containerStyle), className), children: [jsx(SimpleOverflowToolTip, { title: typeof text === 'string' ? text : null, children: jsx("span", { className: css(textStyle), children: text }) }), jsx("span", { className: css(tagStyle), children: i18n.t('components.priceTag.pro') })] })) })) : (text);
38
39
  };
40
+
41
+ export { PriceTag, containerStyle, tagStyle, textStyle };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare enum EXPAND_TYPE_ENUM {
3
2
  TEXT = "text",
4
3
  TAG = "tag"
@@ -1,19 +1,20 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
2
- import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
1
+ import { jsxs, jsx } from '@emotion/react/jsx-runtime';
2
+ import { useState, useRef, useMemo, useCallback, useEffect } from 'react';
3
3
  import { ClassNames } from '@emotion/react';
4
4
  import { useListener } from '@giteeteam/proxima-sdk-js';
5
5
  import { debounce } from 'lodash-es';
6
- import BaseOverflowTooltip from 'components/common/overflow-tooltip/BaseOverflowTooltip';
7
- import { cancelIdleCallback, requestIdleCallback } from 'lib/app/utils';
8
- import useI18n from 'lib/hooks/useI18n';
9
- import { expandBtn, expandFooter } from './style';
6
+ import BaseOverflowTooltip from '../overflow-tooltip/BaseOverflowTooltip.js';
7
+ import { requestIdleCallback, cancelIdleCallback } from '../../../lib/app/utils.js';
8
+ import useI18n from '../../../lib/hooks/useI18n.js';
9
+ import { expandFooter, expandBtn } from './style.js';
10
+
10
11
  const buttonHeight = 20;
11
- export var EXPAND_TYPE_ENUM;
12
+ var EXPAND_TYPE_ENUM;
12
13
  (function (EXPAND_TYPE_ENUM) {
13
14
  EXPAND_TYPE_ENUM["TEXT"] = "text";
14
15
  EXPAND_TYPE_ENUM["TAG"] = "tag";
15
16
  })(EXPAND_TYPE_ENUM || (EXPAND_TYPE_ENUM = {}));
16
- export const EXPAND_MAP = {
17
+ const EXPAND_MAP = {
17
18
  [EXPAND_TYPE_ENUM.TAG]: {
18
19
  maxline: 10,
19
20
  lineHeight: 28,
@@ -60,6 +61,7 @@ const Expand = ({ children, editing, expandType = EXPAND_TYPE_ENUM.TAG }) => {
60
61
  window.removeEventListener('resize', handle);
61
62
  };
62
63
  }, [calculate]);
63
- return (_jsxs("div", { className: "expand-wrapper", style: { padding: currentLine > 1 && expandType === EXPAND_TYPE_ENUM.TEXT ? '5px 0' : 0 }, children: [_jsx("div", { className: "expand-content", children: _jsx(BaseOverflowTooltip, { maxline: isExpand ? 999 : maxline, children: _jsx("span", { ref: ref, children: children }) }) }), showButton && (_jsx(ClassNames, { children: ({ cx, css }) => (_jsx("div", { className: cx(css(expandFooter)), style: { height: `${buttonHeight}px`, lineHeight: `${buttonHeight}px` }, children: _jsx("span", { className: cx(css(expandBtn)), onClick: toggle, children: isExpand ? t('global.collapse') : t('global.expand') }) })) }))] }));
64
+ return (jsxs("div", { className: "expand-wrapper", style: { padding: currentLine > 1 && expandType === EXPAND_TYPE_ENUM.TEXT ? '5px 0' : 0 }, children: [jsx("div", { className: "expand-content", children: jsx(BaseOverflowTooltip, { maxline: isExpand ? 999 : maxline, children: jsx("span", { ref: ref, children: children }) }) }), showButton && (jsx(ClassNames, { children: ({ cx, css }) => (jsx("div", { className: cx(css(expandFooter)), style: { height: `${buttonHeight}px`, lineHeight: `${buttonHeight}px` }, children: jsx("span", { className: cx(css(expandBtn)), onClick: toggle, children: isExpand ? t('global.collapse') : t('global.expand') }) })) }))] }));
64
65
  };
65
- export default Expand;
66
+
67
+ export { EXPAND_MAP, EXPAND_TYPE_ENUM, Expand as default };
@@ -1,8 +1,10 @@
1
- export const expandFooter = `
1
+ const expandFooter = `
2
2
  font-size: 12px;
3
3
  color: #0c62ff;
4
4
  text-align: right;
5
5
  `;
6
- export const expandBtn = `
6
+ const expandBtn = `
7
7
  cursor: pointer;
8
8
  `;
9
+
10
+ export { expandBtn, expandFooter };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface ItemProps {
3
2
  icon?: string;
4
3
  label?: string | React.ReactNode;
@@ -1,6 +1,8 @@
1
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
2
- import ItemTypeIcon from 'components/fields/item-type/ItemTypeIcon';
1
+ import { jsxs, Fragment, jsx } from '@emotion/react/jsx-runtime';
2
+ import { ItemTypeIcon } from '../../fields/item-type/ItemTypeIcon.js';
3
+
3
4
  const ItemIcon = ({ icon, label, className }) => {
4
- return (_jsxs(_Fragment, { children: [icon ? _jsx(ItemTypeIcon, { icon: icon, className: className }) : null, label] }));
5
+ return (jsxs(Fragment, { children: [icon ? jsx(ItemTypeIcon, { icon: icon, className: className }) : null, label] }));
5
6
  };
6
- export default ItemIcon;
7
+
8
+ export { ItemIcon as default };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface BaseOverflowTooltip extends React.HTMLAttributes<HTMLSpanElement> {
3
2
  maxline?: number;
4
3
  }
@@ -1,15 +1,16 @@
1
- import { jsx as _jsx } from "@emotion/react/jsx-runtime";
2
- import { cloneElement, memo, useRef } from 'react';
1
+ import { jsx } from '@emotion/react/jsx-runtime';
2
+ import { memo, useRef, cloneElement } from 'react';
3
3
  import { ClassNames } from '@emotion/react';
4
- import { getTooltipMaxlineStyle, tooltipOverflowStyle } from './style';
4
+ import { tooltipOverflowStyle, getTooltipMaxlineStyle } from './style/index.js';
5
+
5
6
  const BaseOverflowTooltip = props => {
6
7
  const { className, title, children, maxline = 1, style, onClick } = props;
7
8
  const elRef = useRef();
8
9
  if (!children) {
9
10
  return null;
10
11
  }
11
- const childElement = _jsx("span", { children: children });
12
- return (_jsx(ClassNames, { children: ({ cx, css }) => {
12
+ const childElement = jsx("span", { children: children });
13
+ return (jsx(ClassNames, { children: ({ cx, css }) => {
13
14
  return cloneElement(childElement, {
14
15
  ref: elRef,
15
16
  className: cx(css(tooltipOverflowStyle), css(getTooltipMaxlineStyle(maxline)), className),
@@ -20,4 +21,6 @@ const BaseOverflowTooltip = props => {
20
21
  } }));
21
22
  };
22
23
  BaseOverflowTooltip.displayName = 'BaseOverflowTooltip';
23
- export default memo(BaseOverflowTooltip);
24
+ var BaseOverflowTooltip$1 = memo(BaseOverflowTooltip);
25
+
26
+ export { BaseOverflowTooltip$1 as default };
@@ -1,8 +1,9 @@
1
- import { jsx as _jsx } from "@emotion/react/jsx-runtime";
2
- import { memo, useCallback, useEffect, useRef, useState } from 'react';
1
+ import { jsx } from '@emotion/react/jsx-runtime';
2
+ import { memo, useState, useRef, useCallback, useEffect } from 'react';
3
3
  import { ClassNames } from '@emotion/react';
4
4
  import { Tooltip } from 'antd';
5
- import { getTooltipMaxlineStyle, tooltipOverflowStyle } from './style';
5
+ import { tooltipOverflowStyle, getTooltipMaxlineStyle } from './style/index.js';
6
+
6
7
  const isTextOverflow = element => {
7
8
  return new Promise(resolve => {
8
9
  window.requestAnimationFrame(() => {
@@ -46,9 +47,11 @@ const OverflowTooltip = props => {
46
47
  if (!children) {
47
48
  return null;
48
49
  }
49
- const content = (_jsx(ClassNames, { children: ({ cx, css }) => (_jsx("span", { ref: elRef, className: cx(css(tooltipOverflowStyle), css(getTooltipMaxlineStyle(maxline)), className), style: style, onMouseLeave: () => {
50
+ const content = (jsx(ClassNames, { children: ({ cx, css }) => (jsx("span", { ref: elRef, className: cx(css(tooltipOverflowStyle), css(getTooltipMaxlineStyle(maxline)), className), style: style, onMouseLeave: () => {
50
51
  !enterable && setVisible(false);
51
52
  }, children: children })) }));
52
- return (_jsx(Tooltip, { trigger: trigger, placement: placement, overlayStyle: overlayStyle, overlayClassName: overlayClassName, title: title, open: visible, onOpenChange: handleVisibleChange, getPopupContainer: getContainer, destroyTooltipOnHide: true, children: content }));
53
+ return (jsx(Tooltip, { trigger: trigger, placement: placement, overlayStyle: overlayStyle, overlayClassName: overlayClassName, title: title, open: visible, onOpenChange: handleVisibleChange, getPopupContainer: getContainer, destroyTooltipOnHide: true, children: content }));
53
54
  };
54
- export default memo(OverflowTooltip);
55
+ var OverflowTooltip$1 = memo(OverflowTooltip);
56
+
57
+ export { OverflowTooltip$1 as default };
@@ -1,15 +1,18 @@
1
- import { jsx as _jsx } from "@emotion/react/jsx-runtime";
1
+ import { jsx } from '@emotion/react/jsx-runtime';
2
2
  import React, { cloneElement } from 'react';
3
3
  import { ClassNames } from '@emotion/react';
4
- import { simpleTooltipStyle } from './style';
4
+ import { simpleTooltipStyle } from './style/index.js';
5
+
5
6
  const SimpleOverflowToolTip = ({ title, children, className }) => {
6
7
  const contentRef = React.useRef();
7
- return (_jsx(ClassNames, { children: ({ cx, css }) => {
8
- return cloneElement(_jsx("span", { children: children }), {
8
+ return (jsx(ClassNames, { children: ({ cx, css }) => {
9
+ return cloneElement(jsx("span", { children: children }), {
9
10
  ref: contentRef,
10
11
  className: cx(css(simpleTooltipStyle), className),
11
12
  title: title || '',
12
13
  });
13
14
  } }));
14
15
  };
15
- export default React.memo(SimpleOverflowToolTip);
16
+ var SimpleOverflowToolTip$1 = React.memo(SimpleOverflowToolTip);
17
+
18
+ export { SimpleOverflowToolTip$1 as default };
@@ -1,4 +1,4 @@
1
- export const tooltipOverflowStyle = `
1
+ const tooltipOverflowStyle = `
2
2
  display: -webkit-box;
3
3
  overflow: hidden;
4
4
  text-overflow: ellipsis;
@@ -6,13 +6,15 @@ export const tooltipOverflowStyle = `
6
6
  white-space: pre-line !important;
7
7
  -webkit-box-orient: vertical;
8
8
  `;
9
- export const simpleTooltipStyle = `
9
+ const simpleTooltipStyle = `
10
10
  overflow: hidden;
11
11
  text-overflow: ellipsis;
12
12
  white-space: nowrap;
13
13
  `;
14
- export const getTooltipMaxlineStyle = (n) => {
14
+ const getTooltipMaxlineStyle = (n) => {
15
15
  return `
16
16
  -webkit-line-clamp: ${n};
17
17
  `;
18
18
  };
19
+
20
+ export { getTooltipMaxlineStyle, simpleTooltipStyle, tooltipOverflowStyle };
@@ -1,3 +1,5 @@
1
- export const fieldValueOverlayStyle = `
1
+ const fieldValueOverlayStyle = `
2
2
  width: 100%;
3
3
  `;
4
+
5
+ export { fieldValueOverlayStyle };
@@ -1,5 +1,6 @@
1
- import { gray4, gray6 } from 'style/common';
2
- export const hoverStyle = `
1
+ import { gray4, gray6 } from '../../../style/common.js';
2
+
3
+ const hoverStyle = `
3
4
  box-sizing: border-box;
4
5
  display: flex;
5
6
  align-items: center;
@@ -10,8 +11,10 @@ export const hoverStyle = `
10
11
  border: 1px solid ${gray4};
11
12
  border-radius: 4px;
12
13
  `;
13
- export const hoverIconStyle = `
14
+ const hoverIconStyle = `
14
15
  display: none;
15
16
  font-size: 12px;
16
17
  color: ${gray6};
17
18
  `;
19
+
20
+ export { hoverIconStyle, hoverStyle };
@@ -1,15 +1,17 @@
1
- import { jsx as _jsx } from "@emotion/react/jsx-runtime";
1
+ import { jsx } from '@emotion/react/jsx-runtime';
2
2
  import React, { useMemo } from 'react';
3
3
  import { ClassNames } from '@emotion/react';
4
- import { getBackgroundColor, getNameBadge } from '../utils';
5
- import { avatarItemStyle, avatarStyle, defaultAvatarStyle } from './style';
4
+ import { getNameBadge, getBackgroundColor } from '../utils.js';
5
+ import { avatarItemStyle, avatarStyle, defaultAvatarStyle } from './style/index.js';
6
+
6
7
  const UserAvatar = React.memo(({ user, className }) => {
7
8
  const avatarUrl = useMemo(() => { var _a; return (_a = user === null || user === void 0 ? void 0 : user.avatar) === null || _a === void 0 ? void 0 : _a.url; }, [user]);
8
9
  const displayName = useMemo(() => (user === null || user === void 0 ? void 0 : user.name) || (user === null || user === void 0 ? void 0 : user.nickname) || (user === null || user === void 0 ? void 0 : user.username), [user]);
9
10
  const userBadge = useMemo(() => getNameBadge(displayName), [displayName]);
10
- return (_jsx(ClassNames, { children: ({ cx, css }) => {
11
- return avatarUrl ? (_jsx("span", { className: cx('avatar-item', css(avatarItemStyle), css(avatarStyle), css(className)), style: { backgroundImage: `url(${avatarUrl})` } })) : (_jsx("span", { className: cx('avatar-item', css(avatarItemStyle), css(defaultAvatarStyle), css(className)), style: getBackgroundColor(userBadge), children: userBadge }));
11
+ return (jsx(ClassNames, { children: ({ cx, css }) => {
12
+ return avatarUrl ? (jsx("span", { className: cx('avatar-item', css(avatarItemStyle), css(avatarStyle), css(className)), style: { backgroundImage: `url(${avatarUrl})` } })) : (jsx("span", { className: cx('avatar-item', css(avatarItemStyle), css(defaultAvatarStyle), css(className)), style: getBackgroundColor(userBadge), children: userBadge }));
12
13
  } }));
13
14
  });
14
15
  UserAvatar.displayName = 'UserAvatar';
15
- export default UserAvatar;
16
+
17
+ export { UserAvatar as default };
@@ -1,8 +1,8 @@
1
1
  const avatarSize = '20px';
2
- export const avatarItemStyle = `
2
+ const avatarItemStyle = `
3
3
  flex-shrink: 0;
4
4
  `;
5
- export const avatarStyle = `
5
+ const avatarStyle = `
6
6
  display: inline-block;
7
7
  width: ${avatarSize};
8
8
  height: ${avatarSize};
@@ -11,7 +11,7 @@ export const avatarStyle = `
11
11
  background: #fff center/contain no-repeat;
12
12
  border-radius: 50%;
13
13
  `;
14
- export const defaultAvatarStyle = `
14
+ const defaultAvatarStyle = `
15
15
  display: inline-flex;
16
16
  align-items: center;
17
17
  justify-content: center;
@@ -23,3 +23,5 @@ export const defaultAvatarStyle = `
23
23
  background: #5243aa;
24
24
  border-radius: 50%;
25
25
  `;
26
+
27
+ export { avatarItemStyle, avatarStyle, defaultAvatarStyle };
@@ -1,6 +1,8 @@
1
- import dayjs from '../../lib/dayjs';
2
- import { DATE_TIME_FORMAT, DATE_TIME_FORMAT_SEC } from '../../lib/global';
3
- export const getNameBadge = (name) => {
1
+ import '../../lib/dayjs.js';
2
+ import { DATE_TIME_FORMAT, DATE_TIME_FORMAT_SEC } from '../../lib/global.js';
3
+ import dayjs from 'dayjs';
4
+
5
+ const getNameBadge = (name) => {
4
6
  var _a;
5
7
  if (!((_a = name === null || name === void 0 ? void 0 : name.trim) === null || _a === void 0 ? void 0 : _a.call(name)))
6
8
  return null;
@@ -8,14 +10,14 @@ export const getNameBadge = (name) => {
8
10
  return String.fromCodePoint(str.codePointAt(0));
9
11
  };
10
12
  const randomBackgroundColor = ['#5EA1FF', '#4BCC87', '#FFD15E'];
11
- export const getBackgroundColor = (s) => {
13
+ const getBackgroundColor = (s) => {
12
14
  const code = (s === null || s === void 0 ? void 0 : s.charCodeAt(0)) || 0;
13
15
  const random = Math.floor(code % randomBackgroundColor.length);
14
16
  return {
15
17
  background: randomBackgroundColor[random],
16
18
  };
17
19
  };
18
- export const dateFormat = (time, type) => {
20
+ const dateFormat = (time, type) => {
19
21
  const format = DATE_TIME_FORMAT;
20
22
  const format_sec = DATE_TIME_FORMAT_SEC;
21
23
  const date = dayjs(time);
@@ -34,7 +36,7 @@ export const dateFormat = (time, type) => {
34
36
  }
35
37
  }
36
38
  };
37
- export const defaultFilterOptions = (inputValue, option) => {
39
+ const defaultFilterOptions = (inputValue, option) => {
38
40
  var _a, _b, _c;
39
41
  const lowerInputValue = inputValue.toLocaleLowerCase();
40
42
  try {
@@ -65,7 +67,7 @@ export const defaultFilterOptions = (inputValue, option) => {
65
67
  return false;
66
68
  };
67
69
  const defaultConditionFunc = (dom, className) => dom.parentElement.className.includes(className);
68
- export const getParentEle = (dom, className, conditionFunc = defaultConditionFunc) => {
70
+ const getParentEle = (dom, className, conditionFunc = defaultConditionFunc) => {
69
71
  if (conditionFunc(dom, className)) {
70
72
  return dom.parentElement;
71
73
  }
@@ -76,7 +78,7 @@ export const getParentEle = (dom, className, conditionFunc = defaultConditionFun
76
78
  return getParentEle(dom.parentElement, className);
77
79
  }
78
80
  };
79
- export const getPopupContainerFun = (getPopupContainer, triggerNode, apply, page) => {
81
+ const getPopupContainerFun = (getPopupContainer, triggerNode, apply, page) => {
80
82
  if (getPopupContainer) {
81
83
  return getPopupContainer();
82
84
  }
@@ -87,4 +89,6 @@ export const getPopupContainerFun = (getPopupContainer, triggerNode, apply, page
87
89
  return ele;
88
90
  };
89
91
  const zhReg = /[\u4e00-\u9fa5]/g;
90
- export const isChinese = (text) => zhReg.test(text);
92
+ const isChinese = (text) => zhReg.test(text);
93
+
94
+ export { dateFormat, defaultFilterOptions, getBackgroundColor, getNameBadge, getParentEle, getPopupContainerFun, isChinese };
@@ -1,19 +1,24 @@
1
- import { LargeItem, LargeWorkspace, SmallDefault } from 'icons/empty-icon';
2
- import { largeItemClass, largeWorkspaceClass, smallDefaultClass } from './style';
3
- export const config = {
1
+ import img$1 from '../../icons/empty-icon/large-item@2x.png.js';
2
+ import img$2 from '../../icons/empty-icon/large-workspace@2x.png.js';
3
+ import img from '../../icons/empty-icon/small-default@2x.png.js';
4
+ import { smallDefaultClass, largeItemClass, largeWorkspaceClass } from './style.js';
5
+
6
+ const config = {
4
7
  smallDefault: {
5
8
  text: 'views.common.searchSelect.emptyData.noData',
6
- url: SmallDefault,
9
+ url: img,
7
10
  className: smallDefaultClass,
8
11
  },
9
12
  largeItem: {
10
13
  text: 'views.tableComponents.TableEmpty.noDataTip',
11
- url: LargeItem,
14
+ url: img$1,
12
15
  className: largeItemClass,
13
16
  },
14
17
  largeWorkspace: {
15
18
  text: 'pages.workspaces.default.emptyDataDefaultProps.operationInfo',
16
- url: LargeWorkspace,
19
+ url: img$2,
17
20
  className: largeWorkspaceClass,
18
21
  },
19
22
  };
23
+
24
+ export { config };
@@ -1,23 +1,24 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
1
+ import { jsx, jsxs } from '@emotion/react/jsx-runtime';
2
2
  import { ClassNames } from '@emotion/react';
3
- import useI18n from 'lib/hooks/useI18n';
4
- import { config } from './config';
5
- import { autoMarginClass, emptyIconWrapper, largeMarginClass, noMarginClass, smallMarginClass, smallTextClass, textClass, } from './style';
6
- import { EmptyType } from './types';
3
+ import useI18n from '../../lib/hooks/useI18n.js';
4
+ import { config } from './config.js';
5
+ import { emptyIconWrapper, smallTextClass, smallMarginClass, largeMarginClass, noMarginClass, autoMarginClass, textClass } from './style.js';
6
+ import { EmptyType } from './types.js';
7
+
7
8
  const EmptyIcon = ({ type = EmptyType.SMALL_DEFAULT, text, extra, className, style, center, smallText, smallMargin, largeMargin, noMargin, autoMargin, }) => {
8
9
  const { t } = useI18n();
9
10
  const { text: defaultText, url, className: defaultClass } = config[type] || {};
10
- return (_jsx(ClassNames, { children: ({ cx, css }) => (_jsxs("div", { className: cx(css(emptyIconWrapper), {
11
+ return (jsx(ClassNames, { children: ({ cx, css }) => (jsxs("div", { className: cx(css(emptyIconWrapper), {
11
12
  center,
12
13
  [smallTextClass]: smallText,
13
14
  [smallMarginClass]: smallMargin,
14
15
  [largeMarginClass]: largeMargin,
15
16
  [noMarginClass]: noMargin,
16
17
  [autoMarginClass]: autoMargin,
17
- }, className), style: style, children: [_jsx("img", { className: cx(defaultClass), src: url, alt: "" }), _jsx("p", { className: cx(textClass), children: text || t(defaultText) }), extra] })) }));
18
+ }, className), style: style, children: [jsx("img", { className: cx(defaultClass), src: url, alt: "" }), jsx("p", { className: cx(textClass), children: text || t(defaultText) }), extra] })) }));
18
19
  };
19
- export default EmptyIcon;
20
20
  EmptyIcon.defaultProps = {
21
21
  type: EmptyType.SMALL_DEFAULT,
22
22
  };
23
- export { EmptyType } from './types';
23
+
24
+ export { EmptyType, EmptyIcon as default };
@@ -1,15 +1,16 @@
1
- import { randomClassName } from 'style/common';
2
- export const centerClass = randomClassName('center');
3
- export const smallTextClass = randomClassName('small-text');
4
- export const smallMarginClass = randomClassName('small-margin');
5
- export const textClass = randomClassName('text');
6
- export const largeMarginClass = randomClassName('large-margin');
7
- export const noMarginClass = randomClassName('no-margin');
8
- export const autoMarginClass = randomClassName('auto-margin');
9
- export const smallDefaultClass = randomClassName('small-default');
10
- export const largeWorkspaceClass = randomClassName('large-workspace');
11
- export const largeItemClass = randomClassName('large-item');
12
- export const emptyIconWrapper = `
1
+ import { randomClassName } from '../../style/common.js';
2
+
3
+ const centerClass = randomClassName('center');
4
+ const smallTextClass = randomClassName('small-text');
5
+ const smallMarginClass = randomClassName('small-margin');
6
+ const textClass = randomClassName('text');
7
+ const largeMarginClass = randomClassName('large-margin');
8
+ const noMarginClass = randomClassName('no-margin');
9
+ const autoMarginClass = randomClassName('auto-margin');
10
+ const smallDefaultClass = randomClassName('small-default');
11
+ const largeWorkspaceClass = randomClassName('large-workspace');
12
+ const largeItemClass = randomClassName('large-item');
13
+ const emptyIconWrapper = `
13
14
  margin-top: 12px;
14
15
  text-align: center;
15
16
 
@@ -62,3 +63,5 @@ export const emptyIconWrapper = `
62
63
  color: #848c9f;
63
64
  }
64
65
  `;
66
+
67
+ export { autoMarginClass, centerClass, emptyIconWrapper, largeItemClass, largeMarginClass, largeWorkspaceClass, noMarginClass, smallDefaultClass, smallMarginClass, smallTextClass, textClass };
@@ -1,6 +1,8 @@
1
- export var EmptyType;
1
+ var EmptyType;
2
2
  (function (EmptyType) {
3
3
  EmptyType["SMALL_DEFAULT"] = "smallDefault";
4
4
  EmptyType["LARGE_ITEM"] = "largeItem";
5
5
  EmptyType["LARGE_WS"] = "largeWorkspace";
6
6
  })(EmptyType || (EmptyType = {}));
7
+
8
+ export { EmptyType };
@@ -1,6 +1,9 @@
1
- import { FIELD_TYPE_KEY_MAPPINGS } from 'lib/global';
2
- export const SUPPORT_USER_KEYS = [
1
+ import { FIELD_TYPE_KEY_MAPPINGS } from '../../../lib/global.js';
2
+
3
+ const SUPPORT_USER_KEYS = [
3
4
  FIELD_TYPE_KEY_MAPPINGS.User,
4
5
  FIELD_TYPE_KEY_MAPPINGS.Assignee,
5
6
  FIELD_TYPE_KEY_MAPPINGS.Reporter,
6
7
  ];
8
+
9
+ export { SUPPORT_USER_KEYS };
@@ -1,7 +1,10 @@
1
- import { userOptionAdapter } from '../../../lib/users';
2
- export const formatUserOption = (actorData) => {
1
+ import { userOptionAdapter } from '../../../lib/users.js';
2
+
3
+ const formatUserOption = (actorData) => {
3
4
  const isUserData = !!(actorData === null || actorData === void 0 ? void 0 : actorData.username) && (actorData === null || actorData === void 0 ? void 0 : actorData.enabled);
4
5
  if (isUserData)
5
6
  return userOptionAdapter(actorData);
6
7
  return actorData;
7
8
  };
9
+
10
+ export { formatUserOption };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { ReadViewBaseProps } from '../types';
3
2
  declare const ActorReadView: import("react").NamedExoticComponent<ReadViewBaseProps>;
4
3
  export default ActorReadView;
@@ -1,8 +1,9 @@
1
- import { jsx as _jsx, Fragment as _Fragment } from "@emotion/react/jsx-runtime";
1
+ import { jsx, Fragment } from '@emotion/react/jsx-runtime';
2
2
  import { memo, useMemo } from 'react';
3
- import EmptyField from '../../common/EmptyField';
4
- import SimpleOverflowToolTip from '../../common/overflow-tooltip/SimpleOverflowToolTip';
5
- import { formatUserOption } from './BaseField';
3
+ import EmptyField from '../../common/EmptyField.js';
4
+ import SimpleOverflowToolTip from '../../common/overflow-tooltip/SimpleOverflowToolTip.js';
5
+ import { formatUserOption } from './BaseField.js';
6
+
6
7
  const ActorReadView = memo(props => {
7
8
  const { value } = props;
8
9
  const showValue = useMemo(() => {
@@ -24,6 +25,7 @@ const ActorReadView = memo(props => {
24
25
  }
25
26
  return '';
26
27
  }, [value]);
27
- return (_jsx(_Fragment, { children: showValue ? (_jsx(SimpleOverflowToolTip, { title: showValue, children: showValue })) : (_jsx(EmptyField, { readonly: true })) }));
28
+ return (jsx(Fragment, { children: showValue ? (jsx(SimpleOverflowToolTip, { title: showValue, children: showValue })) : (jsx(EmptyField, { readonly: true })) }));
28
29
  });
29
- export default ActorReadView;
30
+
31
+ export { ActorReadView as default };
@@ -1,11 +1,13 @@
1
- import { jsx as _jsx, Fragment as _Fragment } from "@emotion/react/jsx-runtime";
2
- import EmptyField from '../../common/EmptyField';
3
- import BaseOverflowTooltip from '../../common/overflow-tooltip/BaseOverflowTooltip';
4
- import { formatDisplayValue } from './utils';
1
+ import { jsx, Fragment } from '@emotion/react/jsx-runtime';
2
+ import EmptyField from '../../common/EmptyField.js';
3
+ import BaseOverflowTooltip from '../../common/overflow-tooltip/BaseOverflowTooltip.js';
4
+ import { formatDisplayValue } from './utils.js';
5
+
5
6
  const AncestorReadView = props => {
6
7
  const { value, readonly } = props;
7
8
  const displayValue = formatDisplayValue(value);
8
- return (_jsx(_Fragment, { children: displayValue ? (_jsx(BaseOverflowTooltip, { title: displayValue, children: displayValue })) : (_jsx(EmptyField, { readonly: readonly })) }));
9
+ return (jsx(Fragment, { children: displayValue ? (jsx(BaseOverflowTooltip, { title: displayValue, children: displayValue })) : (jsx(EmptyField, { readonly: readonly })) }));
9
10
  };
10
11
  AncestorReadView.displayName = 'AncestorReadView';
11
- export default AncestorReadView;
12
+
13
+ export { AncestorReadView as default };
@@ -1,6 +1,7 @@
1
1
  import debug from 'debug';
2
+
2
3
  const logger = debug('fields:ancestor:utils');
3
- export const formatDisplayValue = (value) => {
4
+ const formatDisplayValue = (value) => {
4
5
  logger('formatDisplayValue', value);
5
6
  if (!value)
6
7
  return undefined;
@@ -12,14 +13,5 @@ export const formatDisplayValue = (value) => {
12
13
  }
13
14
  return value;
14
15
  };
15
- export const formatAncestorFormValues = (itemValue) => {
16
- logger('formatAncestorFormValues', itemValue);
17
- const { objectId, ancestors } = itemValue || {};
18
- const ancestorValue = (ancestors || []).concat(objectId).filter(Boolean).join('-');
19
- return ancestorValue;
20
- };
21
- export const formatAncestorSubmitValues = (submitValues) => {
22
- logger('formatAncestorSubmitValues', submitValues);
23
- const ancestorsValue = ((submitValues === null || submitValues === void 0 ? void 0 : submitValues.ancestor) || '').split('-').filter(Boolean);
24
- return ancestorsValue;
25
- };
16
+
17
+ export { formatDisplayValue };