@antscorp/antsomi-ui 1.3.5-beta.724 → 1.3.5-beta.725
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.
- package/es/components/molecules/CalendarSelection/components/RangePicker/RangePicker.d.ts +1 -1
- package/es/components/organism/ActivityTimeline/ActivityTimeline.js +1 -1
- package/es/components/organism/ActivityTimeline/components/CardMember/CardMember.js +1 -1
- package/es/components/organism/ActivityTimeline/components/Icon/Icon.js +1 -1
- package/es/components/organism/ActivityTimeline/components/ItemEvent/ItemEvent.js +1 -1
- package/es/components/organism/ActivityTimeline/components/ItemGroupEvent/ItemGroupEvent.js +4 -4
- package/es/components/organism/ActivityTimeline/components/List/List.js +1 -1
- package/es/components/organism/ActivityTimeline/utils.js +7 -7
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DatePicker } from '
|
|
1
|
+
import { DatePicker } from '@antscorp/antsomi-ui/es/components/molecules';
|
|
2
2
|
import React, { ComponentProps } from 'react';
|
|
3
3
|
type RangePickerProps = {} & ComponentProps<typeof DatePicker.RangePicker>;
|
|
4
4
|
export declare const RangePicker: React.FC<RangePickerProps>;
|
|
@@ -3,10 +3,10 @@ import React, { useMemo } from 'react';
|
|
|
3
3
|
import { StyledNoData, StyldTitle, StyledRoot, TimelineBottom } from './styled';
|
|
4
4
|
import { Spin } from '../../atoms';
|
|
5
5
|
import { ItemEvent, TimeLineTitle, ItemGroupEvent } from './components';
|
|
6
|
-
import { differenceInMonths, formatDateTZ, startOfMonth, subMonths } from 'src/utils/date';
|
|
7
6
|
import { useInView } from 'react-intersection-observer';
|
|
8
7
|
import { getTranslateMessage, translations } from '@antscorp/antsomi-ui/es/locales/translations';
|
|
9
8
|
import { isEmpty } from 'lodash';
|
|
9
|
+
import { differenceInMonths, formatDateTZ, startOfMonth, subMonths, } from '@antscorp/antsomi-ui/es/utils/date';
|
|
10
10
|
export const ActivityTimeline = (props) => {
|
|
11
11
|
const { timelines = [], isLoading = false, title = 'Time line', timezone = Intl.DateTimeFormat().resolvedOptions().timeZone, objectName = '_THIS_PERSON_UPPERCASE', onFetchMore, eventTracking: eventTrackingProp = [], } = props;
|
|
12
12
|
let { timelineAvailable } = props;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable react/prop-types */
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { WrapCard, ImgPanel, InfoPanel, PlainCard } from './styled';
|
|
4
|
-
import { getTranslateMessage } from '
|
|
4
|
+
import { getTranslateMessage } from '@antscorp/antsomi-ui/es/locales/translations';
|
|
5
5
|
import { safeParse, validateURL } from '@antscorp/antsomi-ui/es/utils';
|
|
6
6
|
import { Flex, Image } from 'antd';
|
|
7
7
|
const cardImage = '//e.antsomi.com/cdp/default/ui-images/info/Default_Membership_Card.png';
|
|
@@ -9,9 +9,9 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
9
9
|
}
|
|
10
10
|
return t;
|
|
11
11
|
};
|
|
12
|
+
import { IconSelectionRenderer } from '@antscorp/antsomi-ui/es/components/molecules';
|
|
12
13
|
import { ICON_TYPE } from '@antscorp/antsomi-ui/es/components/molecules/IconSelection/constants';
|
|
13
14
|
import React from 'react';
|
|
14
|
-
import { IconSelectionRenderer } from 'src/components';
|
|
15
15
|
const DEFAULT_ICON_VALUE = ['cus', 'interactive'];
|
|
16
16
|
export const Icon = (props) => {
|
|
17
17
|
const { icon = '' } = props, rest = __rest(props, ["icon"]);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { checkShowRedeem, formatDateHeader, getInfoEvent } from '../../utils';
|
|
3
|
-
import { useAppConfigContext } from '
|
|
3
|
+
import { useAppConfigContext } from '@antscorp/antsomi-ui/es/providers';
|
|
4
4
|
import { TimelineSection } from '../TimelineSection/TimelineSection';
|
|
5
5
|
import htmlParse from 'html-react-parser';
|
|
6
6
|
import { TimelineContainer, WrapperContainerRedeem } from '../../styled';
|
|
@@ -2,22 +2,22 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { checkShowRedeem, formatDateHeader, getInfoEvent } from '../../utils';
|
|
4
4
|
import { TimelineSection } from '../TimelineSection/TimelineSection';
|
|
5
|
-
import { useAppConfigContext } from 'src/providers';
|
|
6
5
|
import htmlParse from 'html-react-parser';
|
|
7
6
|
import { TimelineContainer, WrapperContainerRedeem } from '../../styled';
|
|
8
7
|
import { CardMember } from '../CardMember';
|
|
9
8
|
import { Redeem } from '../Redeem';
|
|
10
|
-
import { numberWithCommas, safeParse, validateImageURL } from 'src/utils';
|
|
11
9
|
import { ListItemContent } from './styled';
|
|
12
10
|
import { ActionHistory } from '../ActionHistory';
|
|
13
|
-
import { getPortalCurrency, safeParseDisplayFormatCurrency } from 'src/utils/portal';
|
|
14
11
|
import { Swiper } from 'swiper/react';
|
|
15
12
|
import 'swiper/swiper-bundle.css';
|
|
16
13
|
import { ProductCard } from '../ProductCard';
|
|
17
14
|
import { isEmpty } from 'lodash';
|
|
18
|
-
import { translate, translations } from 'src/locales';
|
|
19
15
|
import { ListItem, ListItemTime, ListItemTimeLine, ListItemTitle } from '../ListItem';
|
|
20
16
|
import { List } from '../List';
|
|
17
|
+
import { getPortalCurrency, safeParseDisplayFormatCurrency, } from '@antscorp/antsomi-ui/es/utils/portal';
|
|
18
|
+
import { translate, translations } from '@antscorp/antsomi-ui/es/locales';
|
|
19
|
+
import { useAppConfigContext } from '@antscorp/antsomi-ui/es/providers';
|
|
20
|
+
import { numberWithCommas, safeParse, validateImageURL } from '@antscorp/antsomi-ui/es/utils';
|
|
21
21
|
export const renderProductCard = (dataItem, limitShow, inforEvent, infoCurrency, key) => {
|
|
22
22
|
const result = [];
|
|
23
23
|
dataItem.items.forEach((itemSlide, indexSlide) => {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable no-underscore-dangle */
|
|
4
4
|
import React, { useState } from 'react';
|
|
5
5
|
import { ListWrapper, ListContainer, ListItemEle, LoadMore, LoadLess } from './styled';
|
|
6
|
-
import { getTranslateMessage, translations } from '
|
|
6
|
+
import { getTranslateMessage, translations } from '@antscorp/antsomi-ui/es/locales/translations';
|
|
7
7
|
const textShowMore = getTranslateMessage(translations._USER_GUIDE_SHOW_MORE, 'Show More');
|
|
8
8
|
const textShowLess = getTranslateMessage(translations._USER_GUIDE_SHOW_LESS, 'Show Less');
|
|
9
9
|
export const List = (props) => {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/* eslint-disable no-underscore-dangle */
|
|
2
|
-
import { formatDate, formatDateTZ } from 'src/utils/date';
|
|
3
2
|
import { DATA_EVENT, mapTranslateCode } from './constants';
|
|
4
3
|
import { get } from 'lodash';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
4
|
+
import { ENV, translate } from '../../..';
|
|
5
|
+
import { getTranslateMessage, translations } from '@antscorp/antsomi-ui/es/locales/translations';
|
|
6
|
+
import { safeParse } from '@antscorp/antsomi-ui/es/utils';
|
|
7
|
+
import { formatDate, formatDateTZ } from '@antscorp/antsomi-ui/es/utils/date';
|
|
8
|
+
import { getPortalFormatDateTimeLong } from '@antscorp/antsomi-ui/es/utils/portal';
|
|
9
|
+
import { CDP_ROUTE } from '@antscorp/antsomi-ui/es/constants';
|
|
10
|
+
const translateAt = getTranslateMessage(translations._INFO_LOCATION, 'at');
|
|
11
11
|
const urlJourney = (data, config) => {
|
|
12
12
|
var _a, _b;
|
|
13
13
|
const { story = {} } = data;
|