@capillarytech/blaze-ui 6.5.0 → 6.6.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.
- package/CapAdvancedIcon/types.d.ts +1 -0
- package/CapAdvancedIcon/types.d.ts.map +1 -1
- package/CapDnDGraph/index.js +2 -2
- package/CapDndGraphSidebar/SideBarIcon.d.ts +3 -23
- package/CapDndGraphSidebar/SideBarIcon.d.ts.map +1 -1
- package/CapDndGraphSidebar/SideBarIcon.js +21 -39
- package/CapDndGraphSidebar/SidebarNodesRendered.d.ts +3 -9
- package/CapDndGraphSidebar/SidebarNodesRendered.d.ts.map +1 -1
- package/CapDndGraphSidebar/SidebarNodesRendered.js +13 -4
- package/CapDndGraphSidebar/index.d.ts +4 -20
- package/CapDndGraphSidebar/index.d.ts.map +1 -1
- package/CapDndGraphSidebar/index.js +31 -33
- package/CapDndGraphSidebar/styles.css +20 -6
- package/CapDndGraphSidebar/styles.module.scss.js +15 -0
- package/CapDndGraphSidebar/styles.scss +69 -51
- package/CapDndGraphSidebar/types.d.ts +106 -0
- package/CapDndGraphSidebar/types.d.ts.map +1 -0
- 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/CapDragAndDrop/types.js +1 -0
- package/CapIcon/index.js +12 -12
- package/CapIcon/styles.css +17 -21
- package/CapIcon/styles.module.scss.js +3 -4
- package/CapIcon/styles.scss +10 -15
- package/CapMediaPreview/ImageRenderer.d.ts +2 -15
- package/CapMediaPreview/ImageRenderer.d.ts.map +1 -1
- package/CapMediaPreview/ImageRenderer.js +3 -11
- package/CapMediaPreview/MediaRenderer.d.ts +2 -1
- package/CapMediaPreview/MediaRenderer.d.ts.map +1 -1
- package/CapMediaPreview/MediaRenderer.js +17 -15
- package/CapMediaPreview/VideoPlayer.d.ts +2 -1
- package/CapMediaPreview/VideoPlayer.d.ts.map +1 -1
- package/CapMediaPreview/VideoPlayer.js +16 -15
- package/CapMediaPreview/index.d.ts +4 -51
- package/CapMediaPreview/index.d.ts.map +1 -1
- package/CapMediaPreview/index.js +86 -69
- package/CapMediaPreview/styles.css +31 -21
- package/CapMediaPreview/styles.module.scss.js +24 -0
- package/CapMediaPreview/styles.scss +38 -27
- package/CapMediaPreview/types.d.ts +48 -0
- package/CapMediaPreview/types.d.ts.map +1 -0
- package/CapMediaPreview/types.js +1 -0
- package/CapPopoverTree/index.d.ts +40 -3
- package/CapPopoverTree/index.d.ts.map +1 -1
- package/CapPopoverTree/index.js +82 -72
- package/CapPopoverTree/style.d.ts +1 -5
- package/CapPopoverTree/style.d.ts.map +1 -1
- package/CapPopoverTree/styles.css +18 -119
- package/CapPopoverTree/styles.scss +31 -179
- package/CapSelectFilter/types.d.ts +1 -1
- package/CapSelectFilter/types.d.ts.map +1 -1
- 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 +8 -0
- package/index.d.ts.map +1 -1
- package/index.js +179 -171
- package/package.json +2 -2
- package/utils/getCapThemeConfig.d.ts +1 -1
- package/utils/getCapThemeConfig.d.ts.map +1 -1
- package/utils/getCapThemeConfig.js +9 -1
- package/CapPopoverTree/styles.module.scss.js +0 -26
- package/CapPopoverTree/tests/CapPopoverTree.mockData.d.ts +0 -22
- package/CapPopoverTree/tests/CapPopoverTree.mockData.d.ts.map +0 -1
- package/CapPopoverTree/types.d.ts +0 -62
- package/CapPopoverTree/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/{CapPopoverTree → CapDndGraphSidebar}/types.js +0 -0
|
@@ -12,42 +12,51 @@ $flex-center: (
|
|
|
12
12
|
#{$property}: $value;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
.ant-modal {
|
|
15
|
+
:global(.ant-modal) {
|
|
16
16
|
top: 0;
|
|
17
17
|
padding-bottom: 0;
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
.#{$media-preview}
|
|
21
|
+
:global(.ant-modal).#{$media-preview},
|
|
22
|
+
:global(.ant-modal-wrap .ant-modal).#{$media-preview} {
|
|
22
23
|
width: var(--modal-width) !important;
|
|
23
24
|
height: var(--modal-height) !important;
|
|
24
25
|
top: var(--top-navigation-height) !important;
|
|
25
|
-
|
|
26
|
-
margin: 0;
|
|
27
|
-
|
|
28
|
-
.ant-modal-content {
|
|
29
|
-
height: calc(var(--modal-height) - var(--top-navigation-height));
|
|
30
|
-
background-color: rgba(94, 94, 94, 0.4);
|
|
31
|
-
backdrop-filter: blur($CAP_SPACE_12);
|
|
32
|
-
border-radius: 0;
|
|
33
|
-
display: flex;
|
|
34
|
-
flex-direction: column;
|
|
35
|
-
padding: 0;
|
|
36
|
-
}
|
|
26
|
+
}
|
|
37
27
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
28
|
+
.#{$media-preview}-modal-content {
|
|
29
|
+
height: calc(var(--modal-height) - var(--top-navigation-height)) !important;
|
|
30
|
+
background: rgba(94, 94, 94, 0.4) !important;
|
|
31
|
+
backdrop-filter: blur($CAP_SPACE_12) !important;
|
|
32
|
+
border-radius: 0 !important;
|
|
33
|
+
display: flex !important;
|
|
34
|
+
flex-direction: column !important;
|
|
35
|
+
padding: 0 !important;
|
|
36
|
+
box-shadow: none !important;
|
|
37
|
+
width: 100% !important;
|
|
38
|
+
margin: 0 !important;
|
|
39
|
+
border: none !important;
|
|
40
|
+
outline: none !important;
|
|
41
|
+
transform: none !important;
|
|
42
|
+
position: relative !important;
|
|
43
|
+
color: inherit !important;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.#{$media-preview}-body {
|
|
47
|
+
flex: 1 !important;
|
|
48
|
+
flex-direction: column !important;
|
|
49
|
+
@each $property, $value in $flex-center {
|
|
50
|
+
#{$property}: $value;
|
|
45
51
|
}
|
|
52
|
+
padding: 0 !important;
|
|
53
|
+
overflow: hidden;
|
|
46
54
|
}
|
|
47
55
|
|
|
48
56
|
.#{$media-preview}-container {
|
|
49
57
|
width: 100%;
|
|
50
|
-
|
|
58
|
+
flex: 1;
|
|
59
|
+
min-height: 0;
|
|
51
60
|
display: flex;
|
|
52
61
|
flex-direction: column;
|
|
53
62
|
@each $property, $value in $flex-center {
|
|
@@ -73,7 +82,8 @@ $flex-center: (
|
|
|
73
82
|
.#{$media-preview}-content {
|
|
74
83
|
position: relative;
|
|
75
84
|
width: 100%;
|
|
76
|
-
|
|
85
|
+
flex: 1;
|
|
86
|
+
min-height: 0;
|
|
77
87
|
@each $property, $value in $flex-center {
|
|
78
88
|
#{$property}: $value;
|
|
79
89
|
}
|
|
@@ -100,7 +110,8 @@ $flex-center: (
|
|
|
100
110
|
flex-shrink: 0;
|
|
101
111
|
aspect-ratio: 964.62/540;
|
|
102
112
|
object-fit: contain;
|
|
103
|
-
box-shadow:
|
|
113
|
+
box-shadow:
|
|
114
|
+
0 0 0.071rem rgba(9, 30, 66, 0.31),
|
|
104
115
|
0 0.286rem 0.571rem -0.143rem rgba(9, 30, 66, 0.25);
|
|
105
116
|
}
|
|
106
117
|
|
|
@@ -115,15 +126,15 @@ $flex-center: (
|
|
|
115
126
|
background-color: $CAP_G09;
|
|
116
127
|
cursor: pointer;
|
|
117
128
|
|
|
118
|
-
|
|
129
|
+
&.#{$media-preview}-nav-button-left {
|
|
119
130
|
left: $CAP_SPACE_24;
|
|
120
131
|
}
|
|
121
132
|
|
|
122
|
-
|
|
133
|
+
&.#{$media-preview}-nav-button-right {
|
|
123
134
|
right: $CAP_SPACE_24;
|
|
124
135
|
}
|
|
125
136
|
|
|
126
|
-
|
|
137
|
+
&.#{$media-preview}-nav-button-disabled {
|
|
127
138
|
cursor: not-allowed;
|
|
128
139
|
.#{$media-preview}-nav-button-icon {
|
|
129
140
|
color: $CAP_G06;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { ModalProps } from 'antd-v5';
|
|
2
|
+
import type { WrappedComponentProps } from 'react-intl';
|
|
3
|
+
export interface MediaItem {
|
|
4
|
+
type: string;
|
|
5
|
+
file: string | File;
|
|
6
|
+
name?: string;
|
|
7
|
+
imageProps?: Record<string, unknown>;
|
|
8
|
+
videoProps?: Record<string, unknown>;
|
|
9
|
+
}
|
|
10
|
+
export interface CapMediaPreviewProps extends Omit<ModalProps, 'open' | 'visible' | 'onVisibleChange' | 'onOpenChange'> {
|
|
11
|
+
/** Override className for Modal */
|
|
12
|
+
overrideClassName?: string;
|
|
13
|
+
/** Override className for Modal wrapper */
|
|
14
|
+
overrideWrapperClassName?: string;
|
|
15
|
+
/** Whether the media preview modal is visible */
|
|
16
|
+
isMediaPreviewVisible?: boolean;
|
|
17
|
+
/** Array of media items to display */
|
|
18
|
+
media?: MediaItem[];
|
|
19
|
+
/** Starting index for media carousel */
|
|
20
|
+
startIndex?: number;
|
|
21
|
+
/** Width of the modal */
|
|
22
|
+
width?: ModalProps['width'];
|
|
23
|
+
/** Height of the modal */
|
|
24
|
+
height?: string;
|
|
25
|
+
/** Top navigation height (used for CSS variable) */
|
|
26
|
+
topNavigationHeight?: string;
|
|
27
|
+
/** Callback when modal is closed */
|
|
28
|
+
onClose?: () => void;
|
|
29
|
+
/** Additional props to pass to Modal component */
|
|
30
|
+
modalProps?: Omit<ModalProps, 'open' | 'visible' | 'onVisibleChange' | 'onOpenChange'>;
|
|
31
|
+
}
|
|
32
|
+
export interface MediaRendererProps extends WrappedComponentProps {
|
|
33
|
+
/** Current media item to render */
|
|
34
|
+
currentMedia?: MediaItem;
|
|
35
|
+
}
|
|
36
|
+
export interface ImageRendererProps {
|
|
37
|
+
/** Image source URL */
|
|
38
|
+
src?: string | null;
|
|
39
|
+
/** Additional props to pass to CapImage */
|
|
40
|
+
imageProps?: Record<string, unknown>;
|
|
41
|
+
}
|
|
42
|
+
export interface VideoPlayerProps extends WrappedComponentProps {
|
|
43
|
+
/** Video source URL */
|
|
44
|
+
src?: string | null;
|
|
45
|
+
/** Additional props to pass to video element */
|
|
46
|
+
videoProps?: Record<string, unknown>;
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../components/CapMediaPreview/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAExD,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACtC;AAED,MAAM,WAAW,oBACf,SAAQ,IAAI,CAAC,UAAU,EAAE,MAAM,GAAG,SAAS,GAAG,iBAAiB,GAAG,cAAc,CAAC;IACjF,mCAAmC;IACnC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,2CAA2C;IAC3C,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,iDAAiD;IACjD,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,sCAAsC;IACtC,KAAK,CAAC,EAAE,SAAS,EAAE,CAAC;IACpB,wCAAwC;IACxC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,yBAAyB;IACzB,KAAK,CAAC,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;IAC5B,0BAA0B;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,oDAAoD;IACpD,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,oCAAoC;IACpC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,kDAAkD;IAClD,UAAU,CAAC,EAAE,IAAI,CAAC,UAAU,EAAE,MAAM,GAAG,SAAS,GAAG,iBAAiB,GAAG,cAAc,CAAC,CAAC;CACxF;AAED,MAAM,WAAW,kBAAmB,SAAQ,qBAAqB;IAC/D,mCAAmC;IACnC,YAAY,CAAC,EAAE,SAAS,CAAC;CAC1B;AAED,MAAM,WAAW,kBAAkB;IACjC,uBAAuB;IACvB,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,2CAA2C;IAC3C,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACtC;AAED,MAAM,WAAW,gBAAiB,SAAQ,qBAAqB;IAC7D,uBAAuB;IACvB,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,gDAAgD;IAChD,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACtC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,6 +1,43 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
1
2
|
import React from 'react';
|
|
2
|
-
import
|
|
3
|
-
export declare const CapPopoverTree:
|
|
4
|
-
|
|
3
|
+
import './styles.scss';
|
|
4
|
+
export declare const CapPopoverTree: {
|
|
5
|
+
(props: any): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
defaultProps: {
|
|
7
|
+
trigger: string;
|
|
8
|
+
placement: string;
|
|
9
|
+
showIcon: boolean;
|
|
10
|
+
blockNode: boolean;
|
|
11
|
+
defaultExpandAll: boolean;
|
|
12
|
+
isLoadingData: boolean;
|
|
13
|
+
switcherIcon: import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
renderOnKeyChange: boolean;
|
|
15
|
+
};
|
|
16
|
+
propTypes: {
|
|
17
|
+
trigger: PropTypes.Requireable<string>;
|
|
18
|
+
placement: PropTypes.Requireable<string>;
|
|
19
|
+
className: PropTypes.Requireable<string>;
|
|
20
|
+
defaultExpandAll: PropTypes.Requireable<boolean>;
|
|
21
|
+
overlayClassName: PropTypes.Requireable<string>;
|
|
22
|
+
showIcon: PropTypes.Requireable<boolean>;
|
|
23
|
+
blockNode: PropTypes.Requireable<boolean>;
|
|
24
|
+
propsTreeData: PropTypes.Requireable<any[]>;
|
|
25
|
+
switcherIcon: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
26
|
+
TriggerComponent: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
27
|
+
componentText: PropTypes.Requireable<string>;
|
|
28
|
+
triggerProps: PropTypes.Requireable<object>;
|
|
29
|
+
isTriggerDisabled: PropTypes.Requireable<boolean>;
|
|
30
|
+
triggerDisabledText: PropTypes.Requireable<string>;
|
|
31
|
+
tooltipText: PropTypes.Requireable<string>;
|
|
32
|
+
onSelect: PropTypes.Requireable<(...args: any[]) => any>;
|
|
33
|
+
propsSelectedKey: PropTypes.Requireable<any[]>;
|
|
34
|
+
isLoadingData: PropTypes.Requireable<boolean>;
|
|
35
|
+
loadingTip: PropTypes.Requireable<string>;
|
|
36
|
+
searchPlaceholder: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
37
|
+
emptyDataMessage: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
38
|
+
renderOnKeyChange: PropTypes.Requireable<boolean>;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
declare const _default: React.ComponentType<Omit<any, "intl">>;
|
|
5
42
|
export default _default;
|
|
6
43
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../components/CapPopoverTree/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../components/CapPopoverTree/index.tsx"],"names":[],"mappings":"AAEA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,KAA8B,MAAM,OAAO,CAAC;AAWnD,OAAO,eAAe,CAAC;AAMvB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0M1B,CAAC;;AAsCF,wBAAoE"}
|
package/CapPopoverTree/index.js
CHANGED
|
@@ -1,56 +1,54 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { Tree, Input, Tooltip } from "antd-v5";
|
|
1
|
+
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { Tree, Tooltip, Icon } from "antd";
|
|
4
3
|
import classNames from "classnames";
|
|
4
|
+
import PropTypes from "prop-types";
|
|
5
5
|
import { useState, useEffect } from "react";
|
|
6
|
-
import CapColumn from "../CapColumn/index.js";
|
|
7
6
|
import CapHeadingWithStatic from "../CapHeading/index.js";
|
|
8
|
-
import
|
|
7
|
+
import InputFinal from "../CapInput/index.js";
|
|
9
8
|
import CapPopover from "../CapPopover/index.js";
|
|
10
9
|
import CapRow from "../CapRow/index.js";
|
|
11
10
|
import CapSpin from "../CapSpin/index.js";
|
|
12
11
|
import CapTooltip from "../CapTooltip/index.js";
|
|
13
|
-
import CapTree from "../CapTree/index.js";
|
|
14
12
|
import LocaleHoc from "../LocaleHoc/index.js";
|
|
15
|
-
import
|
|
13
|
+
import { StyledCapTree, StyledIcon, StyledCapHeading, StyledCapColumn, ExpandIcon } from "./style.js";
|
|
14
|
+
import './styles.css';/* empty css */
|
|
16
15
|
const { TreeNode } = Tree;
|
|
16
|
+
const { Search } = InputFinal;
|
|
17
17
|
const clsPrefix = "cap-popover-tree-v2";
|
|
18
18
|
const CapPopoverTree = (props) => {
|
|
19
19
|
var _a;
|
|
20
20
|
const {
|
|
21
21
|
treeData: propsTreeData = [],
|
|
22
22
|
overlayClassName,
|
|
23
|
-
trigger
|
|
23
|
+
trigger,
|
|
24
24
|
TriggerComponent,
|
|
25
25
|
componentText,
|
|
26
26
|
triggerProps,
|
|
27
27
|
isTriggerDisabled,
|
|
28
28
|
triggerDisabledText,
|
|
29
29
|
tooltipText,
|
|
30
|
-
isLoadingData
|
|
30
|
+
isLoadingData,
|
|
31
31
|
loadingTip,
|
|
32
|
-
placement
|
|
33
|
-
switcherIcon
|
|
32
|
+
placement,
|
|
33
|
+
switcherIcon,
|
|
34
34
|
className,
|
|
35
|
-
defaultExpandAll
|
|
35
|
+
defaultExpandAll,
|
|
36
36
|
onSelect,
|
|
37
37
|
selectedKey: propsSelectedKey,
|
|
38
38
|
emptyDataMessage,
|
|
39
39
|
searchPlaceholder,
|
|
40
|
-
renderOnKeyChange
|
|
40
|
+
renderOnKeyChange,
|
|
41
41
|
...rest
|
|
42
42
|
} = props || {};
|
|
43
|
-
const defaultExpandKey = (propsTreeData == null ? void 0 : propsTreeData.length) === 1 && ((_a = propsTreeData[0]) == null ? void 0 : _a.key)
|
|
43
|
+
const defaultExpandKey = (propsTreeData == null ? void 0 : propsTreeData.length) === 1 && ((_a = propsTreeData[0]) == null ? void 0 : _a.key);
|
|
44
44
|
const [searchText, setSearchText] = useState(null);
|
|
45
45
|
const [showPopover, setShowPopover] = useState(null);
|
|
46
46
|
const [filteredTreeData, setFilteredTreeData] = useState(propsTreeData || []);
|
|
47
|
-
const [expandedKeys, setExpandedKeys] = useState(
|
|
48
|
-
defaultExpandKey ? [defaultExpandKey] : []
|
|
49
|
-
);
|
|
47
|
+
const [expandedKeys, setExpandedKeys] = useState(defaultExpandKey ? [defaultExpandKey] : []);
|
|
50
48
|
useEffect(() => {
|
|
51
49
|
setFilteredTreeData(propsTreeData);
|
|
52
|
-
setExpandedKeys(
|
|
53
|
-
}, [propsTreeData
|
|
50
|
+
setExpandedKeys([defaultExpandKey]);
|
|
51
|
+
}, [propsTreeData]);
|
|
54
52
|
const handleSearch = (e) => {
|
|
55
53
|
const { value } = e.target;
|
|
56
54
|
setSearchText(value);
|
|
@@ -65,15 +63,13 @@ const CapPopoverTree = (props) => {
|
|
|
65
63
|
}
|
|
66
64
|
setExpandedKeys(keys);
|
|
67
65
|
};
|
|
68
|
-
const handleSelect = (selectedKey,
|
|
69
|
-
const {
|
|
70
|
-
const nodeProps = node == null ? void 0 : node.props;
|
|
71
|
-
const { isLeafNode, eventKey, expanded } = nodeProps || {};
|
|
66
|
+
const handleSelect = (selectedKey, { node }) => {
|
|
67
|
+
const { isLeafNode, eventKey, expanded } = (node == null ? void 0 : node.props) || {};
|
|
72
68
|
if (isLeafNode) {
|
|
73
69
|
setShowPopover(false);
|
|
74
|
-
onSelect
|
|
70
|
+
onSelect(selectedKey);
|
|
75
71
|
} else {
|
|
76
|
-
const key = expanded ? [] :
|
|
72
|
+
const key = expanded ? [] : [eventKey];
|
|
77
73
|
handleOnExpand(key);
|
|
78
74
|
}
|
|
79
75
|
};
|
|
@@ -82,38 +78,25 @@ const CapPopoverTree = (props) => {
|
|
|
82
78
|
var _a2, _b;
|
|
83
79
|
const { title, key, icon, children = [], info } = data;
|
|
84
80
|
if (title) {
|
|
85
|
-
const
|
|
86
|
-
const itemName = (_a2 = titleString == null ? void 0 : titleString.toLowerCase()) == null ? void 0 : _a2.trim();
|
|
81
|
+
const itemName = (_a2 = title == null ? void 0 : title.toLowerCase()) == null ? void 0 : _a2.trim();
|
|
87
82
|
const searchValue = (_b = searchText == null ? void 0 : searchText.toLowerCase()) == null ? void 0 : _b.trim();
|
|
88
|
-
const searchIndex = searchValue && itemName ? itemName.indexOf(searchValue)
|
|
89
|
-
const beforeString =
|
|
90
|
-
const afterString =
|
|
91
|
-
|
|
92
|
-
);
|
|
93
|
-
const matchedSearch = titleString == null ? void 0 : titleString.substr(
|
|
94
|
-
searchIndex >= 0 ? searchIndex : 0,
|
|
95
|
-
(searchValue == null ? void 0 : searchValue.length) || 0
|
|
96
|
-
);
|
|
83
|
+
const searchIndex = searchValue && (itemName == null ? void 0 : itemName.indexOf(searchValue));
|
|
84
|
+
const beforeString = title == null ? void 0 : title.substr(0, searchIndex);
|
|
85
|
+
const afterString = title == null ? void 0 : title.substr(searchIndex + (searchValue == null ? void 0 : searchValue.length));
|
|
86
|
+
const matchedSearch = title == null ? void 0 : title.substr(searchIndex, searchValue == null ? void 0 : searchValue.length);
|
|
97
87
|
const searchResult = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
98
|
-
/* @__PURE__ */ jsx(
|
|
99
|
-
/* @__PURE__ */ jsx(
|
|
100
|
-
/* @__PURE__ */ jsx(
|
|
88
|
+
/* @__PURE__ */ jsx(StyledCapColumn, { children: beforeString }),
|
|
89
|
+
/* @__PURE__ */ jsx(StyledCapColumn, { style: { fontWeight: 500 }, children: matchedSearch }),
|
|
90
|
+
/* @__PURE__ */ jsx(StyledCapColumn, { children: afterString })
|
|
101
91
|
] });
|
|
102
92
|
const treeNodeProps = {
|
|
103
|
-
title: /* @__PURE__ */ jsxs(
|
|
93
|
+
title: /* @__PURE__ */ jsxs(StyledCapHeading, { className: "tree-node-title", children: [
|
|
104
94
|
searchIndex > -1 ? searchResult : title,
|
|
105
|
-
info && /* @__PURE__ */ jsx("span", { className: "info-tooltip", children: /* @__PURE__ */ jsx(Tooltip, { placement: "right", title: info, children: /* @__PURE__ */ jsx(
|
|
95
|
+
info && /* @__PURE__ */ jsx("span", { className: "info-tooltip", children: /* @__PURE__ */ jsx(Tooltip, { placement: "right", title: info, children: /* @__PURE__ */ jsx(Icon, { className: "info-icon", type: "info-circle-o" }) }) })
|
|
106
96
|
] }),
|
|
107
97
|
key,
|
|
108
98
|
isLeafNode: !(children == null ? void 0 : children.length),
|
|
109
|
-
icon: icon && /* @__PURE__ */ jsx(
|
|
110
|
-
CapIcon,
|
|
111
|
-
{
|
|
112
|
-
className: classNames(styles.styledIcon, "tree-node-icon"),
|
|
113
|
-
size: "s",
|
|
114
|
-
type: icon
|
|
115
|
-
}
|
|
116
|
-
)
|
|
99
|
+
icon: icon && /* @__PURE__ */ jsx(StyledIcon, { className: "tree-node-icon", size: "s", type: icon })
|
|
117
100
|
};
|
|
118
101
|
result.push(
|
|
119
102
|
/* @__PURE__ */ jsx(TreeNode, { ...treeNodeProps, children: (children == null ? void 0 : children.length) && getTreeData(children) })
|
|
@@ -131,15 +114,15 @@ const CapPopoverTree = (props) => {
|
|
|
131
114
|
return;
|
|
132
115
|
}
|
|
133
116
|
const filteredData = propsTreeData.reduce((result, currentData) => {
|
|
134
|
-
var _a3;
|
|
135
|
-
const
|
|
136
|
-
const parentName = titleString == null ? void 0 : titleString.toLowerCase();
|
|
117
|
+
var _a3, _b;
|
|
118
|
+
const parentName = (_a3 = currentData == null ? void 0 : currentData.title) == null ? void 0 : _a3.toLowerCase();
|
|
137
119
|
const isParent = (parentName == null ? void 0 : parentName.indexOf(searchString)) > -1;
|
|
138
|
-
const childItems = (
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
120
|
+
const childItems = (_b = currentData == null ? void 0 : currentData.children) == null ? void 0 : _b.filter(
|
|
121
|
+
(childItem) => {
|
|
122
|
+
var _a4, _b2;
|
|
123
|
+
return ((_b2 = (_a4 = childItem == null ? void 0 : childItem.title) == null ? void 0 : _a4.toLowerCase()) == null ? void 0 : _b2.indexOf(searchString)) > -1;
|
|
124
|
+
}
|
|
125
|
+
);
|
|
143
126
|
const hasChildren = !!(childItems == null ? void 0 : childItems.length);
|
|
144
127
|
const currentDataCopy = { ...currentData };
|
|
145
128
|
if (hasChildren) {
|
|
@@ -158,18 +141,16 @@ const CapPopoverTree = (props) => {
|
|
|
158
141
|
/* @__PURE__ */ jsx(
|
|
159
142
|
CapPopover,
|
|
160
143
|
{
|
|
161
|
-
visible: showPopover
|
|
162
|
-
onVisibleChange:
|
|
144
|
+
visible: showPopover,
|
|
145
|
+
onVisibleChange: setShowPopover,
|
|
163
146
|
trigger,
|
|
164
147
|
placement,
|
|
165
148
|
overlayClassName: classNames(`${clsPrefix}`, overlayClassName),
|
|
166
149
|
...rest,
|
|
167
150
|
content: /* @__PURE__ */ jsx(CapRow, { className: "search-and-tree-wrapper", children: /* @__PURE__ */ jsxs(CapSpin, { spinning: isLoadingData, tip: loadingTip, children: [
|
|
168
151
|
/* @__PURE__ */ jsx(
|
|
169
|
-
|
|
152
|
+
Search,
|
|
170
153
|
{
|
|
171
|
-
prefix: /* @__PURE__ */ jsx(CapIcon, { type: "search", size: "s" }),
|
|
172
|
-
variant: "borderless",
|
|
173
154
|
placeholder: searchPlaceholder,
|
|
174
155
|
onChange: handleSearch,
|
|
175
156
|
className: "search-tree-node"
|
|
@@ -177,7 +158,7 @@ const CapPopoverTree = (props) => {
|
|
|
177
158
|
),
|
|
178
159
|
/* @__PURE__ */ jsx("div", { className: "divider" }),
|
|
179
160
|
(filteredTreeData == null ? void 0 : filteredTreeData.length) ? /* @__PURE__ */ jsx(
|
|
180
|
-
|
|
161
|
+
StyledCapTree,
|
|
181
162
|
{
|
|
182
163
|
showIcon: true,
|
|
183
164
|
blockNode: true,
|
|
@@ -187,11 +168,8 @@ const CapPopoverTree = (props) => {
|
|
|
187
168
|
onExpand: handleOnExpand,
|
|
188
169
|
onSelect: handleSelect,
|
|
189
170
|
switcherIcon,
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
(expandedKeys == null ? void 0 : expandedKeys.length) && !searchText && styles.isExpanded,
|
|
193
|
-
className
|
|
194
|
-
),
|
|
171
|
+
isExpanded: (expandedKeys == null ? void 0 : expandedKeys.length) && !searchText,
|
|
172
|
+
className,
|
|
195
173
|
...renderOnKeyChange ? { key: JSON.stringify(filteredTreeData) } : {},
|
|
196
174
|
...rest,
|
|
197
175
|
children: getTreeData(searchText ? filteredTreeData : propsTreeData)
|
|
@@ -200,12 +178,44 @@ const CapPopoverTree = (props) => {
|
|
|
200
178
|
] }) })
|
|
201
179
|
}
|
|
202
180
|
),
|
|
203
|
-
/* @__PURE__ */ jsx(CapRow, { children: !isTriggerDisabled ? /* @__PURE__ */ jsx(CapTooltip, { title: tooltipText, overlayClassName: "add-condition-tooltip", children:
|
|
181
|
+
/* @__PURE__ */ jsx(CapRow, { children: !isTriggerDisabled ? /* @__PURE__ */ jsx(CapTooltip, { title: tooltipText, overlayClassName: "add-condition-tooltip", children: /* @__PURE__ */ jsx(TriggerComponent, { ...triggerProps, onClick: () => setShowPopover(true), children: componentText }) }) : /* @__PURE__ */ jsx(CapTooltip, { title: triggerDisabledText, children: /* @__PURE__ */ jsx("span", { className: "button-disabled-tooltip-wrapper", children: /* @__PURE__ */ jsx(TriggerComponent, { ...triggerProps, children: componentText }) }) }) })
|
|
204
182
|
] });
|
|
205
183
|
};
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
184
|
+
CapPopoverTree.defaultProps = {
|
|
185
|
+
trigger: "click",
|
|
186
|
+
placement: "rightBottom",
|
|
187
|
+
showIcon: true,
|
|
188
|
+
blockNode: true,
|
|
189
|
+
defaultExpandAll: false,
|
|
190
|
+
isLoadingData: false,
|
|
191
|
+
switcherIcon: /* @__PURE__ */ jsx(ExpandIcon, { size: "m", type: "chevron-down" }),
|
|
192
|
+
renderOnKeyChange: false
|
|
193
|
+
};
|
|
194
|
+
CapPopoverTree.propTypes = {
|
|
195
|
+
trigger: PropTypes.string,
|
|
196
|
+
placement: PropTypes.string,
|
|
197
|
+
className: PropTypes.string,
|
|
198
|
+
defaultExpandAll: PropTypes.bool,
|
|
199
|
+
overlayClassName: PropTypes.string,
|
|
200
|
+
showIcon: PropTypes.bool,
|
|
201
|
+
blockNode: PropTypes.bool,
|
|
202
|
+
propsTreeData: PropTypes.array,
|
|
203
|
+
switcherIcon: PropTypes.node,
|
|
204
|
+
TriggerComponent: PropTypes.node,
|
|
205
|
+
componentText: PropTypes.string,
|
|
206
|
+
triggerProps: PropTypes.object,
|
|
207
|
+
isTriggerDisabled: PropTypes.bool,
|
|
208
|
+
triggerDisabledText: PropTypes.string,
|
|
209
|
+
tooltipText: PropTypes.string,
|
|
210
|
+
onSelect: PropTypes.func,
|
|
211
|
+
propsSelectedKey: PropTypes.array,
|
|
212
|
+
isLoadingData: PropTypes.bool,
|
|
213
|
+
loadingTip: PropTypes.string,
|
|
214
|
+
searchPlaceholder: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
215
|
+
emptyDataMessage: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
216
|
+
renderOnKeyChange: PropTypes.bool
|
|
217
|
+
};
|
|
218
|
+
const index = LocaleHoc(CapPopoverTree, { key: "CapPopoverTree" });
|
|
209
219
|
export {
|
|
210
220
|
CapPopoverTree,
|
|
211
221
|
index as default
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
interface StyledCapTreeProps {
|
|
2
|
-
isExpanded?: boolean;
|
|
3
|
-
}
|
|
4
1
|
export declare const ExpandIcon: import("styled-components").StyledComponent<import("../CapIcon").CapIconComponent, any, {}, never>;
|
|
5
2
|
export declare const StyledIcon: import("styled-components").StyledComponent<import("../CapIcon").CapIconComponent, any, {}, never>;
|
|
6
3
|
export declare const StyledCapHeading: import("styled-components").StyledComponent<import("../CapHeading/types").CapHeadingComponent, any, {}, never>;
|
|
7
4
|
export declare const StyledCapColumn: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../CapColumn").CapColumnProps & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
8
|
-
export declare const StyledCapTree: import("styled-components").StyledComponent<import("react").FC<import("../CapTree").CapTreeProps>, any,
|
|
9
|
-
export {};
|
|
5
|
+
export declare const StyledCapTree: import("styled-components").StyledComponent<import("react").FC<import("../CapTree").CapTreeProps>, any, {}, never>;
|
|
10
6
|
//# sourceMappingURL=style.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../components/CapPopoverTree/style.ts"],"names":[],"mappings":"AAQA,
|
|
1
|
+
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../components/CapPopoverTree/style.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,UAAU,oGAMtB,CAAC;AAEF,eAAO,MAAM,UAAU,oGAItB,CAAC;AAEF,eAAO,MAAM,gBAAgB,gHAI5B,CAAC;AAEF,eAAO,MAAM,eAAe,+LAE3B,CAAC;AAEF,eAAO,MAAM,aAAa,oHA4DzB,CAAC"}
|
|
@@ -6,132 +6,31 @@
|
|
|
6
6
|
/* Border Width */
|
|
7
7
|
/* Transition */
|
|
8
8
|
/* Timezones Footer */
|
|
9
|
-
.expandIcon {
|
|
10
|
-
margin-top: 0.714rem;
|
|
11
|
-
z-index: 1;
|
|
12
|
-
}
|
|
13
|
-
.expandIcon svg {
|
|
14
|
-
height: 1.714rem;
|
|
15
|
-
width: 1.714rem;
|
|
16
|
-
}
|
|
17
|
-
.styledIcon {
|
|
18
|
-
z-index: 1;
|
|
19
|
-
padding: 0.286rem;
|
|
20
|
-
border-radius: 0.571rem;
|
|
21
|
-
background: #ebecf0;
|
|
22
|
-
}
|
|
23
|
-
.styledCapHeading {
|
|
24
|
-
display: inline;
|
|
25
|
-
margin-left: 0.286rem;
|
|
26
|
-
}
|
|
27
|
-
.styledCapColumn {
|
|
28
|
-
display: inline;
|
|
29
|
-
}
|
|
30
|
-
.matchedSearch {
|
|
31
|
-
font-weight: 500;
|
|
32
|
-
}
|
|
33
|
-
.styledCapTree.ant-tree.cap-tree-v2 {
|
|
34
|
-
min-height: 8.857rem;
|
|
35
|
-
}
|
|
36
|
-
.styledCapTree.ant-tree.cap-tree-v2 li {
|
|
37
|
-
padding: 0;
|
|
38
|
-
}
|
|
39
|
-
.styledCapTree.ant-tree.cap-tree-v2 .ant-tree-node-content-wrapper {
|
|
40
|
-
height: 2.857rem;
|
|
41
|
-
padding: 0.643rem 0 0.786rem 0.286rem;
|
|
42
|
-
}
|
|
43
|
-
.styledCapTree.ant-tree.cap-tree-v2 .ant-tree-node-content-wrapper:hover {
|
|
44
|
-
background-color: #faf9f4;
|
|
45
|
-
margin-left: -2.857rem;
|
|
46
|
-
padding-left: 3.143rem;
|
|
47
|
-
}
|
|
48
|
-
.styledCapTree.ant-tree.cap-tree-v2 .ant-tree-node-selected .tree-node-title {
|
|
49
|
-
color: #1d61ee;
|
|
50
|
-
}
|
|
51
|
-
.styledCapTree.ant-tree.cap-tree-v2 .ant-tree-node-content-wrapper-open {
|
|
52
|
-
margin-left: -2.857rem;
|
|
53
|
-
padding-left: 3.143rem;
|
|
54
|
-
width: 23.143rem;
|
|
55
|
-
}
|
|
56
|
-
.styledCapTree.ant-tree.cap-tree-v2.isExpanded .ant-tree-node-content-wrapper-open {
|
|
57
|
-
background: #e9f0fe;
|
|
58
|
-
border-left: 0.143rem solid #2466ea;
|
|
59
|
-
}
|
|
60
|
-
.styledCapTree.ant-tree.cap-tree-v2.isExpanded .ant-tree-node-content-wrapper-open:hover {
|
|
61
|
-
background-color: #e9f0fe;
|
|
62
|
-
}
|
|
63
|
-
.styledCapTree.ant-tree.cap-tree-v2.isExpanded .ant-tree-node-content-wrapper-open .tree-node-title {
|
|
64
|
-
color: #1d61ee;
|
|
65
|
-
}
|
|
66
|
-
.styledCapTree.ant-tree.cap-tree-v2.isExpanded .ant-tree-node-content-wrapper-open .tree-node-icon {
|
|
67
|
-
z-index: 1;
|
|
68
|
-
background: #2466ea;
|
|
69
|
-
color: #ffffff;
|
|
70
|
-
}
|
|
71
|
-
.styledCapTree.ant-tree.cap-tree-v2 .ant-tree-child-tree .ant-tree-node-content-wrapper {
|
|
72
|
-
position: relative;
|
|
73
|
-
margin-left: 1.143rem;
|
|
74
|
-
padding-left: 0;
|
|
75
|
-
width: 17.857rem;
|
|
76
|
-
}
|
|
77
|
-
.styledCapTree.ant-tree.cap-tree-v2 .ant-tree-child-tree .ant-tree-node-selected {
|
|
78
|
-
background-color: #e9f0fe;
|
|
79
|
-
}
|
|
80
|
-
.styledCapTree.ant-tree.cap-tree-v2 .ant-tree-child-tree .ant-tree-title {
|
|
81
|
-
margin-left: -0.857rem;
|
|
82
|
-
}
|
|
83
|
-
.styledCapTree.ant-tree.cap-tree-v2 .ant-tree-child-tree .ant-tree-title .info-icon {
|
|
84
|
-
position: absolute;
|
|
85
|
-
right: 1.786rem;
|
|
86
|
-
top: 1rem;
|
|
87
|
-
}
|
|
88
|
-
.isExpanded.ant-tree.cap-tree-v2 .ant-tree-node-content-wrapper-open {
|
|
89
|
-
background: #e9f0fe;
|
|
90
|
-
border-left: 0.143rem solid #2466ea;
|
|
91
|
-
}
|
|
92
|
-
.isExpanded.ant-tree.cap-tree-v2 .ant-tree-node-content-wrapper-open:hover {
|
|
93
|
-
background-color: #e9f0fe;
|
|
94
|
-
}
|
|
95
|
-
.isExpanded.ant-tree.cap-tree-v2 .ant-tree-node-content-wrapper-open .tree-node-title {
|
|
96
|
-
color: #1d61ee;
|
|
97
|
-
}
|
|
98
|
-
.isExpanded.ant-tree.cap-tree-v2 .ant-tree-node-content-wrapper-open .tree-node-icon {
|
|
99
|
-
z-index: 1;
|
|
100
|
-
background: #2466ea;
|
|
101
|
-
color: #ffffff;
|
|
102
|
-
}
|
|
103
|
-
.ant-popover.cap-popover-tree-v2 {
|
|
104
|
-
width: 23.857rem;
|
|
105
|
-
}
|
|
106
9
|
.ant-popover.cap-popover-tree-v2 .ant-popover-content {
|
|
10
|
+
width: 334px;
|
|
107
11
|
padding: 0;
|
|
108
|
-
min-height:
|
|
109
|
-
}
|
|
110
|
-
.ant-popover.cap-popover-tree-v2 .ant-popover-inner-content {
|
|
111
|
-
padding: 0 0 0.857rem 0;
|
|
112
|
-
}
|
|
113
|
-
.ant-popover.cap-popover-tree-v2 .search-and-tree-wrapper {
|
|
114
|
-
display: block;
|
|
115
|
-
}
|
|
116
|
-
.ant-popover.cap-popover-tree-v2 .search-and-tree-wrapper .ant-spin-container {
|
|
117
|
-
width: 100%;
|
|
118
|
-
}
|
|
119
|
-
.ant-popover.cap-popover-tree-v2 .search-tree-node.ant-input-affix-wrapper {
|
|
120
|
-
width: 100%;
|
|
121
|
-
padding: 0.571rem 0.857rem;
|
|
122
|
-
border-bottom: 0.071rem solid #dfe2e7;
|
|
123
|
-
}
|
|
124
|
-
.ant-popover.cap-popover-tree-v2 .search-tree-node.ant-input-affix-wrapper .ant-input {
|
|
125
|
-
margin-left: 0.286rem;
|
|
12
|
+
min-height: 176px;
|
|
126
13
|
}
|
|
127
14
|
.ant-popover.cap-popover-tree-v2 .divider {
|
|
128
|
-
|
|
15
|
+
border-top: 1px solid #dfe2e7;
|
|
129
16
|
}
|
|
130
17
|
.ant-popover.cap-popover-tree-v2 .empty-data-text {
|
|
131
18
|
text-align: center;
|
|
132
|
-
margin-top:
|
|
133
|
-
padding:
|
|
19
|
+
margin-top: 12px;
|
|
20
|
+
padding: 10px 0;
|
|
21
|
+
}
|
|
22
|
+
.ant-popover.cap-popover-tree-v2 .ant-popover-inner-content {
|
|
23
|
+
padding: 0 0 12px 0;
|
|
24
|
+
}
|
|
25
|
+
.ant-popover.cap-popover-tree-v2 .search-tree-node .ant-input-affix-wrapper {
|
|
26
|
+
width: 300px;
|
|
27
|
+
margin-left: 12px;
|
|
28
|
+
}
|
|
29
|
+
.ant-popover.cap-popover-tree-v2 .search-tree-node .ant-input-affix-wrapper .ant-input.ant-input-lg {
|
|
30
|
+
border: none !important;
|
|
31
|
+
border-radius: 0 !important;
|
|
32
|
+
margin-left: 8px;
|
|
134
33
|
}
|
|
135
34
|
.add-condition-tooltip .ant-tooltip-inner {
|
|
136
|
-
width:
|
|
35
|
+
width: 386px;
|
|
137
36
|
}
|