@capillarytech/blaze-ui 6.2.0 → 6.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CapDateRangePicker/index.d.ts.map +1 -1
- package/CapDateRangePicker/index.js +1 -5
- package/CapDateRangePicker/styles.css +0 -28
- package/CapDateRangePicker/styles.module.scss.js +1 -2
- package/CapDateRangePicker/styles.scss +0 -37
- package/CapDateRangePicker/types.d.ts +0 -5
- package/CapDateRangePicker/types.d.ts.map +1 -1
- package/CapDragAndDrop/index.d.ts +3 -19
- package/CapDragAndDrop/index.d.ts.map +1 -1
- package/CapDragAndDrop/index.js +24 -29
- package/CapDragAndDrop/messages.d.ts +25 -0
- package/CapDragAndDrop/messages.d.ts.map +1 -0
- package/CapDragAndDrop/messages.js +28 -0
- package/CapDragAndDrop/styles.css +17 -15
- package/CapDragAndDrop/styles.module.scss.js +21 -0
- package/CapDragAndDrop/styles.scss +18 -16
- package/CapDragAndDrop/types.d.ts +17 -0
- package/CapDragAndDrop/types.d.ts.map +1 -0
- package/CapMobileDateRangePicker/index.d.ts +21 -5
- package/CapMobileDateRangePicker/index.d.ts.map +1 -1
- package/CapMobileDateRangePicker/index.js +309 -262
- package/CapMobileDateRangePicker/styles.css +144 -107
- package/CapMobileDateRangePicker/styles.scss +192 -188
- package/CapTimeline/CapTimelineCard.d.ts +4 -27
- package/CapTimeline/CapTimelineCard.d.ts.map +1 -1
- package/CapTimeline/CapTimelineCard.js +40 -157
- package/CapTimeline/CapTimelinePanesWrapper.d.ts +4 -25
- package/CapTimeline/CapTimelinePanesWrapper.d.ts.map +1 -1
- package/CapTimeline/CapTimelinePanesWrapper.js +24 -20
- package/CapTimeline/index.d.ts +2 -17
- package/CapTimeline/index.d.ts.map +1 -1
- package/CapTimeline/index.js +62 -23
- package/CapTimeline/messages.d.ts +21 -0
- package/CapTimeline/messages.d.ts.map +1 -0
- package/CapTimeline/messages.js +24 -0
- package/CapTimeline/styles.css +40 -40
- package/CapTimeline/styles.module.scss.js +30 -0
- package/CapTimeline/styles.scss +76 -57
- package/CapTimeline/tests/CapTimeline.mockData.d.ts +14 -0
- package/CapTimeline/tests/CapTimeline.mockData.d.ts.map +1 -0
- package/CapTimeline/types.d.ts +60 -0
- package/CapTimeline/types.d.ts.map +1 -0
- package/CapTimeline/types.js +1 -0
- package/index.d.ts +4 -2
- package/index.d.ts.map +1 -1
- package/index.js +99 -97
- package/package.json +1 -1
- package/utils/dayjs.d.ts +0 -29
- package/utils/dayjs.d.ts.map +1 -1
- package/utils/dayjs.js +0 -30
- package/utils/getCapThemeConfig.d.ts.map +1 -1
- package/utils/getCapThemeConfig.js +9 -1
- package/CapMobileDateRangePicker/DateRangeInputSelectors.d.ts +0 -7
- package/CapMobileDateRangePicker/DateRangeInputSelectors.d.ts.map +0 -1
- package/CapMobileDateRangePicker/DateRangeInputSelectors.js +0 -68
- package/CapMobileDateRangePicker/messages.d.ts +0 -17
- package/CapMobileDateRangePicker/messages.d.ts.map +0 -1
- package/CapMobileDateRangePicker/messages.js +0 -20
- package/CapMobileDateRangePicker/styles.module.scss.js +0 -21
- package/CapMobileDateRangePicker/tests/CapMobileDateRangePicker.mockData.d.ts +0 -18
- package/CapMobileDateRangePicker/tests/CapMobileDateRangePicker.mockData.d.ts.map +0 -1
- package/CapMobileDateRangePicker/types.d.ts +0 -95
- package/CapMobileDateRangePicker/types.d.ts.map +0 -1
- package/CapVirtualSelect/actions.d.ts +0 -16
- package/CapVirtualSelect/actions.d.ts.map +0 -1
- package/CapVirtualSelect/actions.js +0 -21
- package/CapVirtualSelect/constants.d.ts +0 -13
- package/CapVirtualSelect/constants.d.ts.map +0 -1
- package/CapVirtualSelect/constants.js +0 -26
- package/CapVirtualSelect/index.d.ts +0 -169
- package/CapVirtualSelect/index.d.ts.map +0 -1
- package/CapVirtualSelect/index.js +0 -409
- package/CapVirtualSelect/messages.d.ts +0 -9
- package/CapVirtualSelect/messages.d.ts.map +0 -1
- package/CapVirtualSelect/messages.js +0 -12
- package/CapVirtualSelect/reducer.d.ts +0 -4
- package/CapVirtualSelect/reducer.d.ts.map +0 -1
- package/CapVirtualSelect/reducer.js +0 -63
- package/CapVirtualSelect/saga.d.ts +0 -40
- package/CapVirtualSelect/saga.d.ts.map +0 -1
- package/CapVirtualSelect/saga.js +0 -91
- package/CapVirtualSelect/selectors.d.ts +0 -28
- package/CapVirtualSelect/selectors.d.ts.map +0 -1
- package/CapVirtualSelect/selectors.js +0 -30
- package/CapVirtualSelect/styles.css +0 -110
- package/CapVirtualSelect/styles.scss +0 -106
- package/CapVirtualSelect/tests/mockData.d.ts +0 -7
- package/CapVirtualSelect/tests/mockData.d.ts.map +0 -1
- package/CapVirtualSelect/utils.d.ts +0 -2
- package/CapVirtualSelect/utils.d.ts.map +0 -1
- package/CapVirtualSelect/utils.js +0 -12
- /package/{CapMobileDateRangePicker → CapDragAndDrop}/types.js +0 -0
|
@@ -1,28 +1,7 @@
|
|
|
1
|
-
import PropTypes from 'prop-types';
|
|
2
1
|
import React from 'react';
|
|
3
|
-
import '
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
isReviewScreen: any;
|
|
8
|
-
activeTab: any;
|
|
9
|
-
timelineLeftPaneContents: any;
|
|
10
|
-
timelineRightCards: any;
|
|
11
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
propTypes: {
|
|
13
|
-
className: PropTypes.Requireable<string>;
|
|
14
|
-
isReviewScreen: PropTypes.Requireable<boolean>;
|
|
15
|
-
activeTab: PropTypes.Requireable<string>;
|
|
16
|
-
timelineLeftPaneContents: PropTypes.Requireable<object>;
|
|
17
|
-
timelineRightCards: PropTypes.Requireable<any[]>;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
declare const _default: React.ComponentType<Omit<{
|
|
21
|
-
className: any;
|
|
22
|
-
isReviewScreen: any;
|
|
23
|
-
activeTab: any;
|
|
24
|
-
timelineLeftPaneContents: any;
|
|
25
|
-
timelineRightCards: any;
|
|
26
|
-
} & import("react-intl").WrappedComponentProps, "intl">>;
|
|
2
|
+
import type { WrappedComponentProps } from 'react-intl';
|
|
3
|
+
import type { CapTimelinePanesWrapperProps } from './types';
|
|
4
|
+
export declare const CapTimelinePanesWrapper: ({ className, isReviewScreen, activeTab, timelineLeftPaneContents, timelineRightCards, timelineClassName, }: CapTimelinePanesWrapperProps & WrappedComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare const _default: React.ComponentType<Omit<CapTimelinePanesWrapperProps & WrappedComponentProps, "intl">>;
|
|
27
6
|
export default _default;
|
|
28
7
|
//# sourceMappingURL=CapTimelinePanesWrapper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CapTimelinePanesWrapper.d.ts","sourceRoot":"","sources":["../../components/CapTimeline/CapTimelinePanesWrapper.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CapTimelinePanesWrapper.d.ts","sourceRoot":"","sources":["../../components/CapTimeline/CapTimelinePanesWrapper.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAOxD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,SAAS,CAAC;AAI5D,eAAO,MAAM,uBAAuB,GAAI,4GAOrC,4BAA4B,GAAG,qBAAqB,4CA+CtD,CAAC;;AAEF,wBAAmD"}
|
|
@@ -1,47 +1,51 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Timeline } from "antd-v5";
|
|
2
3
|
import classNames from "classnames";
|
|
3
|
-
import
|
|
4
|
+
import { injectIntl } from "react-intl";
|
|
4
5
|
import CapColumn from "../CapColumn/index.js";
|
|
5
6
|
import CapDivider from "../CapDivider/index.js";
|
|
6
7
|
import CapRow from "../CapRow/index.js";
|
|
7
|
-
import
|
|
8
|
-
import './styles.css';/* empty css */
|
|
8
|
+
import styles from "./styles.module.scss.js";
|
|
9
9
|
const clsPrefix = "cap-timeline-panes-wrapper-v1";
|
|
10
10
|
const CapTimelinePanesWrapper = ({
|
|
11
11
|
className,
|
|
12
12
|
isReviewScreen,
|
|
13
13
|
activeTab,
|
|
14
14
|
timelineLeftPaneContents,
|
|
15
|
-
timelineRightCards
|
|
15
|
+
timelineRightCards,
|
|
16
|
+
timelineClassName
|
|
16
17
|
}) => {
|
|
17
18
|
const renderActiveTabContent = () => {
|
|
18
19
|
return Object.keys(timelineLeftPaneContents).map((key, index) => {
|
|
19
|
-
const
|
|
20
|
-
return /* @__PURE__ */ jsx(CapRow, { className: classNames(
|
|
20
|
+
const paneClassName = activeTab === key || isReviewScreen ? styles[`${clsPrefix}-active-pane`] : styles[`${clsPrefix}-inactive-pane`];
|
|
21
|
+
return /* @__PURE__ */ jsx(CapRow, { className: classNames(paneClassName), id: key, children: timelineLeftPaneContents[key] }, index);
|
|
21
22
|
});
|
|
22
23
|
};
|
|
23
|
-
return /* @__PURE__ */ jsxs(CapRow, { className: classNames(className, `${clsPrefix}-pane-wrapper`), children: [
|
|
24
|
-
/* @__PURE__ */ jsx(CapColumn, { className: classNames(`${clsPrefix}-left-pane-col`, `${clsPrefix}-custom-scroll`), children: timelineRightCards }),
|
|
25
|
-
/* @__PURE__ */ jsx(CapColumn, { className: classNames(`${clsPrefix}-divider-col`), children: /* @__PURE__ */ jsx(CapDivider, { className: `${clsPrefix}-timelinePane-divider`, type: "vertical" }) }),
|
|
24
|
+
return /* @__PURE__ */ jsxs(CapRow, { className: classNames(className, styles[`${clsPrefix}-pane-wrapper`]), children: [
|
|
26
25
|
/* @__PURE__ */ jsx(
|
|
27
26
|
CapColumn,
|
|
28
27
|
{
|
|
29
|
-
className: classNames(
|
|
28
|
+
className: classNames(
|
|
29
|
+
styles[`${clsPrefix}-left-pane-col`],
|
|
30
|
+
styles[`${clsPrefix}-custom-scroll`]
|
|
31
|
+
),
|
|
32
|
+
children: /* @__PURE__ */ jsx(Timeline, { className: timelineClassName, children: timelineRightCards.map((item) => /* @__PURE__ */ jsx(Timeline.Item, { dot: item.icon, className: item.className, children: item.content }, item.key)) })
|
|
33
|
+
}
|
|
34
|
+
),
|
|
35
|
+
/* @__PURE__ */ jsx(CapColumn, { className: classNames(styles[`${clsPrefix}-divider-col`]), children: /* @__PURE__ */ jsx(CapDivider, { className: styles[`${clsPrefix}-timelinePane-divider`], type: "vertical" }) }),
|
|
36
|
+
/* @__PURE__ */ jsx(
|
|
37
|
+
CapColumn,
|
|
38
|
+
{
|
|
39
|
+
className: classNames(
|
|
40
|
+
styles[`${clsPrefix}-right-pane-col`],
|
|
41
|
+
styles[`${clsPrefix}-custom-scroll`]
|
|
42
|
+
),
|
|
30
43
|
children: renderActiveTabContent()
|
|
31
44
|
}
|
|
32
45
|
)
|
|
33
46
|
] });
|
|
34
47
|
};
|
|
35
|
-
CapTimelinePanesWrapper
|
|
36
|
-
className: PropTypes.string,
|
|
37
|
-
isReviewScreen: PropTypes.bool,
|
|
38
|
-
activeTab: PropTypes.string,
|
|
39
|
-
timelineLeftPaneContents: PropTypes.object,
|
|
40
|
-
timelineRightCards: PropTypes.array
|
|
41
|
-
};
|
|
42
|
-
const CapTimelinePanesWrapper$1 = LocaleHoc(CapTimelinePanesWrapper, {
|
|
43
|
-
key: "CapTimelinePanesWrapper"
|
|
44
|
-
});
|
|
48
|
+
const CapTimelinePanesWrapper$1 = injectIntl(CapTimelinePanesWrapper);
|
|
45
49
|
export {
|
|
46
50
|
CapTimelinePanesWrapper,
|
|
47
51
|
CapTimelinePanesWrapper$1 as default
|
package/CapTimeline/index.d.ts
CHANGED
|
@@ -3,22 +3,7 @@
|
|
|
3
3
|
* CapTimeline
|
|
4
4
|
*
|
|
5
5
|
*/
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
declare const CapTimeline: {
|
|
9
|
-
({ className, timelinePanes, activeTab, isReviewScreen, width }: {
|
|
10
|
-
className: any;
|
|
11
|
-
timelinePanes: any;
|
|
12
|
-
activeTab: any;
|
|
13
|
-
isReviewScreen: any;
|
|
14
|
-
width: any;
|
|
15
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
propTypes: {
|
|
17
|
-
timelinePanes: PropTypes.Requireable<any[]>;
|
|
18
|
-
currentStep: PropTypes.Requireable<string>;
|
|
19
|
-
setCurrentStep: PropTypes.Requireable<(...args: any[]) => any>;
|
|
20
|
-
width: PropTypes.Requireable<number>;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
6
|
+
import type { CapTimelineProps } from './types';
|
|
7
|
+
declare const CapTimeline: ({ className, timelinePanes, activeTab, isReviewScreen, width, }: CapTimelineProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
8
|
export default CapTimeline;
|
|
24
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../components/CapTimeline/index.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../components/CapTimeline/index.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAaH,OAAO,KAAK,EAAE,gBAAgB,EAAoB,MAAM,SAAS,CAAC;AAMlE,QAAA,MAAM,WAAW,GAAI,iEAMlB,gBAAgB,4CAoHlB,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
package/CapTimeline/index.js
CHANGED
|
@@ -1,13 +1,22 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Timeline } from "antd";
|
|
3
2
|
import classNames from "classnames";
|
|
4
|
-
import
|
|
3
|
+
import CapIcon from "../CapIcon/index.js";
|
|
5
4
|
import CapRow from "../CapRow/index.js";
|
|
5
|
+
import CapTooltip from "../CapTooltip/index.js";
|
|
6
|
+
import * as styles__variables from "../styles/_variables.js";
|
|
6
7
|
import CapTimelineCard from "./CapTimelineCard.js";
|
|
7
8
|
import CapTimelinePanesWrapper from "./CapTimelinePanesWrapper.js";
|
|
8
|
-
import
|
|
9
|
+
import styles from "./styles.module.scss.js";
|
|
10
|
+
const { FONT_SIZE_M, CAP_G04, CAP_RED } = styles__variables;
|
|
11
|
+
const clsCardPrefix = "cap-timeline-card-v1";
|
|
9
12
|
const clsPrefix = "cap-timeline-v1";
|
|
10
|
-
const CapTimeline = ({
|
|
13
|
+
const CapTimeline = ({
|
|
14
|
+
className,
|
|
15
|
+
timelinePanes,
|
|
16
|
+
activeTab,
|
|
17
|
+
isReviewScreen,
|
|
18
|
+
width = 380
|
|
19
|
+
}) => {
|
|
11
20
|
const { timelineLeftPaneContents, timelineRightCards } = timelinePanes.reduce(
|
|
12
21
|
(accumulator, {
|
|
13
22
|
milestoneHeader,
|
|
@@ -22,10 +31,37 @@ const CapTimeline = ({ className, timelinePanes, activeTab, isReviewScreen, widt
|
|
|
22
31
|
content,
|
|
23
32
|
configError,
|
|
24
33
|
edited,
|
|
25
|
-
handleClick
|
|
34
|
+
handleClick = () => {
|
|
35
|
+
}
|
|
26
36
|
}, index) => {
|
|
27
|
-
|
|
28
|
-
|
|
37
|
+
const isSelected = activeTab === key;
|
|
38
|
+
const isLastPane = index === (timelinePanes == null ? void 0 : timelinePanes.length) - 1;
|
|
39
|
+
let icon;
|
|
40
|
+
if (disabled) {
|
|
41
|
+
icon = configError ? /* @__PURE__ */ jsx(CapIcon, { style: { color: CAP_RED, fontSize: FONT_SIZE_M }, type: "warning" }) : /* @__PURE__ */ jsx(
|
|
42
|
+
CapIcon,
|
|
43
|
+
{
|
|
44
|
+
style: { color: CAP_G04, fontSize: FONT_SIZE_M, marginTop: "1px" },
|
|
45
|
+
type: "exclamation-circle"
|
|
46
|
+
}
|
|
47
|
+
);
|
|
48
|
+
} else if (configError) {
|
|
49
|
+
icon = /* @__PURE__ */ jsx(CapTooltip, { title: "Warning", children: /* @__PURE__ */ jsx(CapIcon, { style: { color: CAP_RED, fontSize: FONT_SIZE_M }, type: "warning", size: "l" }) });
|
|
50
|
+
} else if (!complete || edited) {
|
|
51
|
+
icon = /* @__PURE__ */ jsx(CapTooltip, { title: "Pending", children: /* @__PURE__ */ jsx(
|
|
52
|
+
CapIcon,
|
|
53
|
+
{
|
|
54
|
+
style: { color: CAP_G04, fontSize: FONT_SIZE_M, marginTop: "1px" },
|
|
55
|
+
type: "exclamation-circle"
|
|
56
|
+
}
|
|
57
|
+
) });
|
|
58
|
+
} else {
|
|
59
|
+
icon = /* @__PURE__ */ jsx(CapTooltip, { title: "Completed", children: /* @__PURE__ */ jsx("span", { className: styles[`${clsCardPrefix}-icon-parent`], children: /* @__PURE__ */ jsx(CapIcon, { type: "check", style: { fontSize: FONT_SIZE_M } }) }) });
|
|
60
|
+
}
|
|
61
|
+
const item = {
|
|
62
|
+
key,
|
|
63
|
+
icon,
|
|
64
|
+
content: /* @__PURE__ */ jsx(
|
|
29
65
|
CapTimelineCard,
|
|
30
66
|
{
|
|
31
67
|
milestoneHeader,
|
|
@@ -37,15 +73,23 @@ const CapTimeline = ({ className, timelinePanes, activeTab, isReviewScreen, widt
|
|
|
37
73
|
alwaysShowDescription,
|
|
38
74
|
complete,
|
|
39
75
|
configError,
|
|
40
|
-
isLastPane: index === (timelinePanes == null ? void 0 : timelinePanes.length) - 1 ? true : false,
|
|
41
|
-
width,
|
|
42
|
-
edited,
|
|
43
76
|
handleClick,
|
|
44
|
-
isSelected
|
|
45
|
-
|
|
46
|
-
|
|
77
|
+
isSelected,
|
|
78
|
+
isLastPane,
|
|
79
|
+
width
|
|
80
|
+
}
|
|
81
|
+
),
|
|
82
|
+
className: classNames(
|
|
83
|
+
disabled ? styles[`${clsCardPrefix}-disabled-timeline-item`] : styles[`${clsCardPrefix}-enabled-timeline-item`],
|
|
84
|
+
isLastPane && styles[`${clsCardPrefix}-last-pane`],
|
|
85
|
+
!disabled && complete && styles[`${clsCardPrefix}-completed-tail`],
|
|
86
|
+
!disabled && configError && styles[`${clsCardPrefix}-warning-tail`],
|
|
87
|
+
!disabled && configError && styles[`${clsCardPrefix}-warning-card`],
|
|
88
|
+
!disabled && complete && !isSelected && styles[`${clsCardPrefix}-complete-head`],
|
|
89
|
+
!configError ? styles[`${clsCardPrefix}-division`] : styles[`${clsCardPrefix}-warning-division`]
|
|
47
90
|
)
|
|
48
|
-
|
|
91
|
+
};
|
|
92
|
+
accumulator.timelineRightCards.push(item);
|
|
49
93
|
accumulator.timelineLeftPaneContents[key] = content;
|
|
50
94
|
return accumulator;
|
|
51
95
|
},
|
|
@@ -54,21 +98,16 @@ const CapTimeline = ({ className, timelinePanes, activeTab, isReviewScreen, widt
|
|
|
54
98
|
timelineRightCards: []
|
|
55
99
|
}
|
|
56
100
|
);
|
|
57
|
-
return /* @__PURE__ */ jsx(CapRow, { className, children: /* @__PURE__ */ jsx(
|
|
101
|
+
return /* @__PURE__ */ jsx(CapRow, { className, children: /* @__PURE__ */ jsx(
|
|
58
102
|
CapTimelinePanesWrapper,
|
|
59
103
|
{
|
|
60
104
|
activeTab,
|
|
61
105
|
timelineLeftPaneContents,
|
|
62
106
|
timelineRightCards,
|
|
63
|
-
isReviewScreen
|
|
107
|
+
isReviewScreen,
|
|
108
|
+
timelineClassName: styles[`${clsPrefix}-body`]
|
|
64
109
|
}
|
|
65
|
-
) })
|
|
66
|
-
};
|
|
67
|
-
CapTimeline.propTypes = {
|
|
68
|
-
timelinePanes: PropTypes.array,
|
|
69
|
-
currentStep: PropTypes.string,
|
|
70
|
-
setCurrentStep: PropTypes.func,
|
|
71
|
-
width: PropTypes.number
|
|
110
|
+
) });
|
|
72
111
|
};
|
|
73
112
|
export {
|
|
74
113
|
CapTimeline as default
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const scope = "app.commonUtils.capUiLibrary.CapTimelineCard";
|
|
2
|
+
declare const _default: {
|
|
3
|
+
defaultConfiguringMessage: {
|
|
4
|
+
id: string;
|
|
5
|
+
defaultMessage: string;
|
|
6
|
+
};
|
|
7
|
+
defaultNotConfiguredMessage: {
|
|
8
|
+
id: string;
|
|
9
|
+
defaultMessage: string;
|
|
10
|
+
};
|
|
11
|
+
toConfigure: {
|
|
12
|
+
id: string;
|
|
13
|
+
defaultMessage: string;
|
|
14
|
+
};
|
|
15
|
+
completePrevSteps: {
|
|
16
|
+
id: string;
|
|
17
|
+
defaultMessage: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export default _default;
|
|
21
|
+
//# sourceMappingURL=messages.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../components/CapTimeline/messages.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK,iDAAiD,CAAC;;;;;;;;;;;;;;;;;;;AAEpE,wBAiBG"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { defineMessages } from "react-intl";
|
|
2
|
+
const scope = "app.commonUtils.capUiLibrary.CapTimelineCard";
|
|
3
|
+
const messages = defineMessages({
|
|
4
|
+
defaultConfiguringMessage: {
|
|
5
|
+
id: `${scope}.defaultConfiguringMessage`,
|
|
6
|
+
defaultMessage: "Configuring..."
|
|
7
|
+
},
|
|
8
|
+
defaultNotConfiguredMessage: {
|
|
9
|
+
id: `${scope}.defaultNotConfiguredMessage`,
|
|
10
|
+
defaultMessage: "Not configured yet..."
|
|
11
|
+
},
|
|
12
|
+
toConfigure: {
|
|
13
|
+
id: `${scope}.toConfigure`,
|
|
14
|
+
defaultMessage: "To configure "
|
|
15
|
+
},
|
|
16
|
+
completePrevSteps: {
|
|
17
|
+
id: `${scope}.completePrevSteps`,
|
|
18
|
+
defaultMessage: " complete the previous steps."
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
export {
|
|
22
|
+
messages as default,
|
|
23
|
+
scope
|
|
24
|
+
};
|
package/CapTimeline/styles.css
CHANGED
|
@@ -6,11 +6,8 @@
|
|
|
6
6
|
/* Border Width */
|
|
7
7
|
/* Transition */
|
|
8
8
|
/* Timezones Footer */
|
|
9
|
-
.cap-timeline-v1-body .ant-timeline-item-
|
|
10
|
-
top:
|
|
11
|
-
}
|
|
12
|
-
.cap-timeline-v1-body .ant-timeline-item-tail {
|
|
13
|
-
top: 1.857rem;
|
|
9
|
+
.cap-timeline-v1-body .ant-timeline-item-rail {
|
|
10
|
+
top: 2.1rem !important;
|
|
14
11
|
}
|
|
15
12
|
.cap-timeline-card-v1-pane-selected {
|
|
16
13
|
background-color: #e9f0fe;
|
|
@@ -34,6 +31,7 @@
|
|
|
34
31
|
.cap-timeline-panes-wrapper-v1-right-pane-col {
|
|
35
32
|
height: 74vh;
|
|
36
33
|
overflow: auto;
|
|
34
|
+
color: rgba(0, 0, 0, 0.65);
|
|
37
35
|
}
|
|
38
36
|
.cap-timeline-panes-wrapper-v1-left-pane-col {
|
|
39
37
|
width: 39%;
|
|
@@ -46,17 +44,19 @@
|
|
|
46
44
|
margin-left: 1.428rem;
|
|
47
45
|
margin-right: 1.714rem;
|
|
48
46
|
}
|
|
49
|
-
.cap-timeline-panes-wrapper-v1-divider-col .cap-timeline-panes-wrapper-v1-timelinePane-divider
|
|
50
|
-
.cap-timeline-panes-wrapper-v1-divider-col .ant-divider ant-divider-vertical {
|
|
47
|
+
.cap-timeline-panes-wrapper-v1-divider-col .cap-timeline-panes-wrapper-v1-timelinePane-divider {
|
|
51
48
|
margin: 0;
|
|
52
49
|
}
|
|
53
|
-
.cap-timeline-card-v1-division {
|
|
54
|
-
|
|
50
|
+
.ant-timeline-item.cap-timeline-card-v1-division .ant-timeline-item-icon {
|
|
51
|
+
border: 0.071rem solid #dfe2e7 !important;
|
|
52
|
+
border-radius: 50% !important;
|
|
53
|
+
padding: 0.214rem 0.214rem !important;
|
|
54
|
+
width: 1.714rem !important;
|
|
55
|
+
height: 1.714rem !important;
|
|
55
56
|
}
|
|
56
|
-
.cap-timeline-card-v1-division .ant-timeline-item-
|
|
57
|
-
border: 0.
|
|
58
|
-
border-
|
|
59
|
-
border-radius: 50%;
|
|
57
|
+
.ant-timeline-item.cap-timeline-card-v1-warning-division .ant-timeline-item-icon {
|
|
58
|
+
border: 0.071rem solid #ea213a !important;
|
|
59
|
+
border-radius: 50% !important;
|
|
60
60
|
padding: 0.214rem 0.214rem !important;
|
|
61
61
|
width: 1.714rem !important;
|
|
62
62
|
height: 1.714rem !important;
|
|
@@ -73,6 +73,7 @@
|
|
|
73
73
|
}
|
|
74
74
|
.cap-timeline-panes-wrapper-v1-pane-wrapper {
|
|
75
75
|
display: flex;
|
|
76
|
+
flex-wrap: nowrap;
|
|
76
77
|
}
|
|
77
78
|
.cap-timeline-card-v1-disabled-timeline-item {
|
|
78
79
|
cursor: not-allowed;
|
|
@@ -83,56 +84,55 @@
|
|
|
83
84
|
.cap-timeline-card-v1-enabled-card:hover {
|
|
84
85
|
background-color: #faf9f4;
|
|
85
86
|
}
|
|
86
|
-
.cap-timeline-card-v1-warning-card {
|
|
87
|
-
border-color: #ea213a;
|
|
88
|
-
}
|
|
89
87
|
.cap-timeline-card-v1-icon-parent {
|
|
90
88
|
border-radius: 2.857rem;
|
|
91
89
|
border-color: beige;
|
|
92
90
|
}
|
|
93
|
-
.cap-timeline-card-v1-card-body .ant-card-body
|
|
94
|
-
|
|
91
|
+
.cap-timeline-card-v1-card-body .ant-card-body,
|
|
92
|
+
.cap-timeline-card-v1-card-body .cap-card-wrapper .ant-card .ant-card-body {
|
|
93
|
+
padding: 0.571rem 1.142rem !important;
|
|
94
|
+
color: rgba(0, 0, 0, 0.65);
|
|
95
95
|
}
|
|
96
|
-
.cap-timeline-card-v1-last-pane .ant-timeline-item-
|
|
96
|
+
.cap-timeline-card-v1-last-pane .ant-timeline-item-rail {
|
|
97
97
|
display: none;
|
|
98
98
|
}
|
|
99
|
-
.cap-timeline-card-v1-completed-tail .ant-timeline-item-
|
|
99
|
+
.cap-timeline-card-v1-completed-tail .ant-timeline-item-rail {
|
|
100
|
+
border-inline-start: 0.143rem solid #42b040;
|
|
100
101
|
border-left: 0.143rem solid #42b040;
|
|
101
102
|
}
|
|
102
|
-
.cap-timeline-card-v1-warning-tail .ant-timeline-item-
|
|
103
|
+
.cap-timeline-card-v1-warning-tail .ant-timeline-item-rail {
|
|
104
|
+
border-inline-start: 0.143rem solid #e8e8e8;
|
|
103
105
|
border-left: 0.143rem solid #e8e8e8;
|
|
104
106
|
}
|
|
105
|
-
.cap-timeline-card-v1-complete-head .ant-timeline-item-
|
|
106
|
-
border: 0.143rem solid #42b040;
|
|
107
|
-
border-
|
|
107
|
+
.ant-timeline-item.cap-timeline-card-v1-complete-head .ant-timeline-item-icon {
|
|
108
|
+
border: 0.143rem solid #42b040 !important;
|
|
109
|
+
border-radius: 50% !important;
|
|
110
|
+
width: 1.714rem !important;
|
|
111
|
+
height: 1.714rem !important;
|
|
112
|
+
overflow: hidden;
|
|
108
113
|
}
|
|
109
114
|
.cap-timeline-panes-wrapper-v1-timelinePane-divider.cap-divider-v2 {
|
|
110
115
|
height: 32.857rem;
|
|
111
116
|
}
|
|
112
|
-
.cap-timeline-card-v1-warning-division {
|
|
113
|
-
margin-bottom: 0.857rem;
|
|
114
|
-
}
|
|
115
|
-
.cap-timeline-card-v1-warning-division .ant-timeline-item-head {
|
|
116
|
-
border: 0.143rem solid #ea213a;
|
|
117
|
-
border-width: 0.071rem;
|
|
118
|
-
border-radius: 50%;
|
|
119
|
-
padding: 0.214rem 0.214rem !important;
|
|
120
|
-
width: 1.714rem !important;
|
|
121
|
-
height: 1.714rem !important;
|
|
122
|
-
}
|
|
123
117
|
.ant-timeline-item {
|
|
124
118
|
padding: 0;
|
|
125
119
|
}
|
|
126
120
|
.ant-timeline-item .ant-timeline-item-content {
|
|
127
121
|
top: 0;
|
|
128
|
-
margin-left: 2.286rem;
|
|
129
122
|
}
|
|
130
|
-
.ant-timeline-item .ant-timeline-item-
|
|
131
|
-
|
|
123
|
+
.ant-timeline-item .ant-timeline-item-rail {
|
|
124
|
+
inset-inline-start: 0.857rem !important;
|
|
132
125
|
}
|
|
133
|
-
.ant-timeline-item .ant-timeline-item-
|
|
134
|
-
left: 0.857rem;
|
|
126
|
+
.ant-timeline-item .ant-timeline-item-icon {
|
|
135
127
|
display: flex;
|
|
136
128
|
justify-content: center;
|
|
137
129
|
align-items: center;
|
|
130
|
+
background-color: #ffffff;
|
|
131
|
+
z-index: 1;
|
|
132
|
+
}
|
|
133
|
+
.ant-timeline-item .ant-timeline-item-icon.ant-wave-target {
|
|
134
|
+
pointer-events: none;
|
|
135
|
+
}
|
|
136
|
+
.ant-timeline-item .ant-timeline-item-icon.ant-wave-target > * {
|
|
137
|
+
pointer-events: auto;
|
|
138
138
|
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import './styles.css';const styles = {
|
|
2
|
+
"cap-timeline-v1-body": "cap-timeline-v1-body",
|
|
3
|
+
"cap-timeline-card-v1-pane-selected": "cap-timeline-card-v1-pane-selected",
|
|
4
|
+
"cap-timeline-card-v1-card-description": "cap-timeline-card-v1-card-description",
|
|
5
|
+
"cap-timeline-panes-wrapper-v1-active-pane": "cap-timeline-panes-wrapper-v1-active-pane",
|
|
6
|
+
"cap-timeline-panes-wrapper-v1-inactive-pane": "cap-timeline-panes-wrapper-v1-inactive-pane",
|
|
7
|
+
"cap-timeline-panes-wrapper-v1-right-pane-content": "cap-timeline-panes-wrapper-v1-right-pane-content",
|
|
8
|
+
"cap-timeline-panes-wrapper-v1-left-pane-col": "cap-timeline-panes-wrapper-v1-left-pane-col",
|
|
9
|
+
"cap-timeline-panes-wrapper-v1-right-pane-col": "cap-timeline-panes-wrapper-v1-right-pane-col",
|
|
10
|
+
"cap-timeline-panes-wrapper-v1-divider-col": "cap-timeline-panes-wrapper-v1-divider-col",
|
|
11
|
+
"cap-timeline-panes-wrapper-v1-timelinePane-divider": "cap-timeline-panes-wrapper-v1-timelinePane-divider",
|
|
12
|
+
"cap-timeline-card-v1-division": "cap-timeline-card-v1-division",
|
|
13
|
+
"cap-timeline-card-v1-warning-division": "cap-timeline-card-v1-warning-division",
|
|
14
|
+
"cap-timeline-card-v1-disabled-card": "cap-timeline-card-v1-disabled-card",
|
|
15
|
+
"cap-timeline-card-v1-incomplete-card": "cap-timeline-card-v1-incomplete-card",
|
|
16
|
+
"cap-timeline-card-v1-warning-card": "cap-timeline-card-v1-warning-card",
|
|
17
|
+
"cap-timeline-panes-wrapper-v1-pane-wrapper": "cap-timeline-panes-wrapper-v1-pane-wrapper",
|
|
18
|
+
"cap-timeline-card-v1-disabled-timeline-item": "cap-timeline-card-v1-disabled-timeline-item",
|
|
19
|
+
"cap-timeline-card-v1-enabled-timeline-item": "cap-timeline-card-v1-enabled-timeline-item",
|
|
20
|
+
"cap-timeline-card-v1-enabled-card": "cap-timeline-card-v1-enabled-card",
|
|
21
|
+
"cap-timeline-card-v1-icon-parent": "cap-timeline-card-v1-icon-parent",
|
|
22
|
+
"cap-timeline-card-v1-card-body": "cap-timeline-card-v1-card-body",
|
|
23
|
+
"cap-timeline-card-v1-last-pane": "cap-timeline-card-v1-last-pane",
|
|
24
|
+
"cap-timeline-card-v1-completed-tail": "cap-timeline-card-v1-completed-tail",
|
|
25
|
+
"cap-timeline-card-v1-warning-tail": "cap-timeline-card-v1-warning-tail",
|
|
26
|
+
"cap-timeline-card-v1-complete-head": "cap-timeline-card-v1-complete-head"
|
|
27
|
+
};
|
|
28
|
+
export {
|
|
29
|
+
styles as default
|
|
30
|
+
};
|