neo-cmp-cli 1.13.16 → 1.13.18
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/README.md +2 -1
- package/dist/index2.js +1 -1
- package/dist/main2.js +1 -1
- package/dist/neo/env.js +1 -1
- package/dist/neo/neoLogin.js +1 -1
- package/dist/neo/pushCmp.js +1 -1
- package/dist/package.json.js +1 -1
- package/package.json +3 -2
- package/template/antd-custom-cmp-template/package.json +1 -1
- package/template/asset-manage-template/docs/README.md +1 -232
- package/template/asset-manage-template/package.json +2 -2
- package/template/echarts-custom-cmp-template/package.json +1 -1
- package/template/empty-custom-cmp-template/package.json +2 -2
- package/template/map-custom-cmp-template/package.json +1 -1
- package/template/neo-bi-cmps/neo.config.js +7 -1
- package/template/neo-bi-cmps/package.json +8 -7
- package/template/neo-bi-cmps/public/403.html +77 -0
- package/template/neo-bi-cmps/public/demo.html +2453 -0
- package/template/neo-bi-cmps/src/assets/icon/barChart.svg +1 -0
- package/template/neo-bi-cmps/src/assets/icon/card.svg +1 -0
- package/template/neo-bi-cmps/src/assets/icon/filter.svg +1 -0
- package/template/neo-bi-cmps/src/assets/icon/funnel.svg +1 -0
- package/template/neo-bi-cmps/src/assets/icon/tab.svg +1 -0
- package/template/neo-bi-cmps/src/components/filterBar__c/README.md +3 -14
- package/template/neo-bi-cmps/src/components/filterBar__c/common.scss +29 -0
- package/template/neo-bi-cmps/src/components/filterBar__c/index.tsx +668 -146
- package/template/neo-bi-cmps/src/components/filterBar__c/model.ts +26 -48
- package/template/neo-bi-cmps/src/components/filterBar__c/style.scss +46 -139
- package/template/neo-bi-cmps/src/components/targetNumber__c/customStyleConfig/index.tsx +11 -10
- package/template/neo-bi-cmps/src/components/targetNumber__c/index.tsx +9 -16
- package/template/neo-bi-cmps/src/components/targetNumber__c/model.ts +1 -1
- package/template/neo-bi-cmps/src/utils/common.ts +231 -0
- package/template/neo-bi-cmps/src/utils/filter2chartFilter.ts +268 -0
- package/template/neo-bi-cmps/src/utils/filterBar.ts +140 -0
- package/template/neo-bi-cmps/src/utils/pipelineFunnel.ts +341 -0
- package/template/{neo-h5-cmps/src/utils/queryObjectData.ts → neo-bi-cmps/src/utils/queryByCustomSQL.ts} +18 -13
- package/template/neo-bi-cmps/src/utils/requestDebounce.ts +22 -0
- package/template/neo-bi-cmps/src/utils/simpleTable.tsx +344 -0
- package/template/neo-bi-cmps/src/utils/stageSwitch.ts +15 -0
- package/template/neo-bi-cmps/src/utils/stageTimeChart.ts +90 -0
- package/template/neo-bi-cmps/src/utils/targetNumber.ts +12 -0
- package/template/neo-custom-cmp-template/docs/README.md +0 -231
- package/template/neo-custom-cmp-template/package.json +2 -2
- package/template/neo-h5-cmps/package.json +2 -2
- package/template/neo-h5-cmps/src/components/entityList__c/index.tsx +1 -2
- package/template/neo-h5-cmps/src/components/entityTabs__c/index.tsx +1 -1
- package/template/neo-h5-cmps/src/components/globalSearchInput__c/index.tsx +1 -1
- package/template/neo-h5-cmps/src/components/openChatPageBtn__c/index.tsx +1 -2
- package/template/neo-order-cmps/package.json +2 -2
- package/template/neo-pipeline-cmps/.prettierrc.js +12 -0
- package/template/neo-pipeline-cmps/@types/neo-ui-common.d.ts +36 -0
- package/template/neo-pipeline-cmps/README.md +99 -0
- package/template/neo-pipeline-cmps/commitlint.config.js +59 -0
- package/template/neo-pipeline-cmps/neo.config.js +135 -0
- package/template/neo-pipeline-cmps/package.json +66 -0
- package/template/neo-pipeline-cmps/public/403.html +77 -0
- package/template/neo-pipeline-cmps/public/css/base.css +283 -0
- package/template/neo-pipeline-cmps/public/demo.html +2453 -0
- package/template/neo-pipeline-cmps/public/scripts/app/bluebird.js +6679 -0
- package/template/neo-pipeline-cmps/public/template.html +13 -0
- package/template/neo-pipeline-cmps/src/assets/css/common.scss +127 -0
- package/template/neo-pipeline-cmps/src/assets/css/mixin.scss +47 -0
- package/template/neo-pipeline-cmps/src/assets/icon/barChart.svg +1 -0
- package/template/neo-pipeline-cmps/src/assets/icon/card.svg +1 -0
- package/template/neo-pipeline-cmps/src/assets/icon/filter.svg +1 -0
- package/template/neo-pipeline-cmps/src/assets/icon/funnel.svg +1 -0
- package/template/neo-pipeline-cmps/src/assets/icon/tab.svg +1 -0
- package/template/neo-pipeline-cmps/src/assets/img/AIBtn.gif +0 -0
- package/template/neo-pipeline-cmps/src/assets/img/NeoCRM.jpg +0 -0
- package/template/neo-pipeline-cmps/src/assets/img/aiLogo.png +0 -0
- package/template/neo-pipeline-cmps/src/assets/img/card-list.svg +1 -0
- package/template/neo-pipeline-cmps/src/assets/img/contact-form.svg +1 -0
- package/template/neo-pipeline-cmps/src/assets/img/custom-form.svg +1 -0
- package/template/neo-pipeline-cmps/src/assets/img/custom-widget.svg +1 -0
- package/template/neo-pipeline-cmps/src/assets/img/data-list.svg +1 -0
- package/template/neo-pipeline-cmps/src/assets/img/detail.svg +1 -0
- package/template/neo-pipeline-cmps/src/assets/img/favicon.png +0 -0
- package/template/neo-pipeline-cmps/src/assets/img/map.svg +1 -0
- package/template/neo-pipeline-cmps/src/assets/img/search.svg +1 -0
- package/template/neo-pipeline-cmps/src/assets/img/table.svg +1 -0
- package/template/neo-pipeline-cmps/src/components/filterBar__c/README.md +24 -0
- package/template/neo-pipeline-cmps/src/components/filterBar__c/common.scss +29 -0
- package/template/neo-pipeline-cmps/src/components/filterBar__c/index.tsx +731 -0
- package/template/neo-pipeline-cmps/src/components/filterBar__c/model.ts +52 -0
- package/template/neo-pipeline-cmps/src/components/filterBar__c/style.scss +119 -0
- package/template/neo-pipeline-cmps/src/components/pipelineFunnel__c/README.md +39 -0
- package/template/neo-pipeline-cmps/src/components/pipelineFunnel__c/index.tsx +416 -0
- package/template/neo-pipeline-cmps/src/components/pipelineFunnel__c/model.ts +80 -0
- package/template/neo-pipeline-cmps/src/components/pipelineFunnel__c/style.scss +83 -0
- package/template/neo-pipeline-cmps/src/components/showHealthResult__c/index.tsx +470 -0
- package/template/neo-pipeline-cmps/src/components/showHealthResult__c/model.ts +45 -0
- package/template/neo-pipeline-cmps/src/components/showHealthResult__c/style.scss +137 -0
- package/template/neo-pipeline-cmps/src/components/simpleTable__c/README.md +89 -0
- package/template/neo-pipeline-cmps/src/components/simpleTable__c/common.scss +195 -0
- package/template/neo-pipeline-cmps/src/components/simpleTable__c/index.tsx +667 -0
- package/template/neo-pipeline-cmps/src/components/simpleTable__c/model.ts +124 -0
- package/template/neo-pipeline-cmps/src/components/simpleTable__c/style.scss +192 -0
- package/template/neo-pipeline-cmps/src/components/stageSwitch__c/README.md +36 -0
- package/template/neo-pipeline-cmps/src/components/stageSwitch__c/index.tsx +513 -0
- package/template/neo-pipeline-cmps/src/components/stageSwitch__c/model.ts +71 -0
- package/template/{neo-bi-cmps → neo-pipeline-cmps}/src/components/stageSwitch__c/style.scss +4 -2
- package/template/neo-pipeline-cmps/src/components/stageTimeChart__c/README.md +37 -0
- package/template/neo-pipeline-cmps/src/components/stageTimeChart__c/index.tsx +455 -0
- package/template/neo-pipeline-cmps/src/components/stageTimeChart__c/model.ts +106 -0
- package/template/{neo-bi-cmps → neo-pipeline-cmps}/src/components/stageTimeChart__c/style.scss +3 -2
- package/template/neo-pipeline-cmps/src/utils/common.ts +229 -0
- package/template/neo-pipeline-cmps/src/utils/filter2chartFilter.ts +266 -0
- package/template/neo-pipeline-cmps/src/utils/filterBar.ts +140 -0
- package/template/neo-pipeline-cmps/src/utils/pipelineFunnel.ts +343 -0
- package/template/neo-pipeline-cmps/src/utils/queryByCustomSQL.ts +121 -0
- package/template/neo-pipeline-cmps/src/utils/requestDebounce.ts +22 -0
- package/template/neo-pipeline-cmps/src/utils/simpleTable.tsx +349 -0
- package/template/neo-pipeline-cmps/src/utils/stageSwitch.ts +15 -0
- package/template/neo-pipeline-cmps/src/utils/stageTimeChart.ts +90 -0
- package/template/neo-pipeline-cmps/src/utils/targetNumber.ts +12 -0
- package/template/neo-pipeline-cmps/tsconfig.json +40 -0
- package/template/neo-web-entity-grid/package.json +2 -2
- package/template/neo-web-form/package.json +2 -2
- package/template/neo-web-form/src/components/batchAddTable__c/index.tsx +161 -41
- package/template/neo-web-form/src/components/batchAddTable__c/model.ts +4 -2
- package/template/react-custom-cmp-template/package.json +1 -1
- package/template/react-ts-custom-cmp-template/package.json +1 -1
- package/template/vue2-custom-cmp-template/package.json +1 -1
- package/template/asset-manage-template/src/utils/axiosFetcher.ts +0 -37
- package/template/asset-manage-template/src/utils/queryObjectData.ts +0 -112
- package/template/asset-manage-template/src/utils/xobjects.ts +0 -162
- package/template/neo-bi-cmps/.npmrc copy +0 -1
- package/template/neo-bi-cmps/src/components/aiCommitDrawer__c/README.md +0 -52
- package/template/neo-bi-cmps/src/components/aiCommitDrawer__c/index.tsx +0 -183
- package/template/neo-bi-cmps/src/components/aiCommitDrawer__c/model.ts +0 -90
- package/template/neo-bi-cmps/src/components/aiCommitDrawer__c/style.scss +0 -218
- package/template/neo-bi-cmps/src/components/forecastChart__c/README.md +0 -31
- package/template/neo-bi-cmps/src/components/forecastChart__c/index.tsx +0 -158
- package/template/neo-bi-cmps/src/components/forecastChart__c/model.ts +0 -40
- package/template/neo-bi-cmps/src/components/forecastChart__c/style.scss +0 -154
- package/template/neo-bi-cmps/src/components/forecastGrid__c/README.md +0 -36
- package/template/neo-bi-cmps/src/components/forecastGrid__c/index.tsx +0 -86
- package/template/neo-bi-cmps/src/components/forecastGrid__c/model.ts +0 -62
- package/template/neo-bi-cmps/src/components/forecastGrid__c/style.scss +0 -48
- package/template/neo-bi-cmps/src/components/gapCloser__c/README.md +0 -24
- package/template/neo-bi-cmps/src/components/gapCloser__c/index.tsx +0 -100
- package/template/neo-bi-cmps/src/components/gapCloser__c/model.ts +0 -46
- package/template/neo-bi-cmps/src/components/gapCloser__c/style.scss +0 -60
- package/template/neo-bi-cmps/src/components/kpiCards__c/README.md +0 -35
- package/template/neo-bi-cmps/src/components/kpiCards__c/index.tsx +0 -70
- package/template/neo-bi-cmps/src/components/kpiCards__c/model.ts +0 -50
- package/template/neo-bi-cmps/src/components/kpiCards__c/style.scss +0 -33
- package/template/neo-bi-cmps/src/components/oppList__c/README.md +0 -52
- package/template/neo-bi-cmps/src/components/oppList__c/index.tsx +0 -285
- package/template/neo-bi-cmps/src/components/oppList__c/model.ts +0 -86
- package/template/neo-bi-cmps/src/components/oppList__c/style.scss +0 -133
- package/template/neo-bi-cmps/src/components/pipelineFunnel__c/README.md +0 -39
- package/template/neo-bi-cmps/src/components/pipelineFunnel__c/index.tsx +0 -130
- package/template/neo-bi-cmps/src/components/pipelineFunnel__c/model.ts +0 -66
- package/template/neo-bi-cmps/src/components/pipelineFunnel__c/style.scss +0 -133
- package/template/neo-bi-cmps/src/components/stageSwitch__c/README.md +0 -36
- package/template/neo-bi-cmps/src/components/stageSwitch__c/index.tsx +0 -118
- package/template/neo-bi-cmps/src/components/stageSwitch__c/model.ts +0 -92
- package/template/neo-bi-cmps/src/components/stageTimeChart__c/README.md +0 -37
- package/template/neo-bi-cmps/src/components/stageTimeChart__c/index.tsx +0 -126
- package/template/neo-bi-cmps/src/components/stageTimeChart__c/model.ts +0 -57
- package/template/neo-bi-cmps/src/components/tabSwitch__c/README.md +0 -37
- package/template/neo-bi-cmps/src/components/tabSwitch__c/index.tsx +0 -80
- package/template/neo-bi-cmps/src/components/tabSwitch__c/model.ts +0 -45
- package/template/neo-bi-cmps/src/components/tabSwitch__c/style.scss +0 -37
- package/template/neo-bi-cmps/src/utils/axiosFetcher.ts +0 -37
- package/template/neo-bi-cmps/src/utils/queryObjectData.ts +0 -76
- package/template/neo-bi-cmps/src/utils/xobjects.ts +0 -162
- package/template/neo-custom-cmp-template/src/utils/axiosFetcher.ts +0 -37
- package/template/neo-custom-cmp-template/src/utils/queryObjectData.ts +0 -112
- package/template/neo-custom-cmp-template/src/utils/xobjects.ts +0 -162
- package/template/neo-h5-cmps/src/utils/axiosFetcher.ts +0 -37
- package/template/neo-h5-cmps/src/utils/xobjects.ts +0 -167
- package/template/neo-order-cmps/src/utils/axiosFetcher.ts +0 -37
- package/template/neo-order-cmps/src/utils/queryObjectData.ts +0 -112
- package/template/neo-order-cmps/src/utils/xobjects.ts +0 -162
- package/template/neo-web-entity-grid/src/utils/axiosFetcher.ts +0 -37
- package/template/neo-web-entity-grid/src/utils/queryObjectData.ts +0 -112
- package/template/neo-web-entity-grid/src/utils/xobjects.ts +0 -167
- package/template/neo-web-form/src/utils/axiosFetcher.ts +0 -37
- package/template/neo-web-form/src/utils/queryObjectData.ts +0 -112
- package/template/neo-web-form/src/utils/xobjects.ts +0 -167
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
.showHealthResult__c {
|
|
2
|
+
background: #fff;
|
|
3
|
+
border-radius: 10px;
|
|
4
|
+
padding: 20px;
|
|
5
|
+
// width: 360px;
|
|
6
|
+
max-width: 100%;
|
|
7
|
+
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
|
|
8
|
+
font-size: 13px;
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
|
|
11
|
+
&__summary {
|
|
12
|
+
color: #666;
|
|
13
|
+
font-size: 12px;
|
|
14
|
+
margin-bottom: 12px;
|
|
15
|
+
white-space: pre-wrap;
|
|
16
|
+
word-break: break-word;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&__radar {
|
|
20
|
+
width: 100%;
|
|
21
|
+
height: 280px;
|
|
22
|
+
margin: 0 auto;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&__loading {
|
|
26
|
+
display: flex;
|
|
27
|
+
flex-wrap: wrap;
|
|
28
|
+
align-items: center;
|
|
29
|
+
justify-content: center;
|
|
30
|
+
gap: 6px 10px;
|
|
31
|
+
min-height: 120px;
|
|
32
|
+
padding: 24px 16px;
|
|
33
|
+
margin-top: 4px;
|
|
34
|
+
border-radius: 12px;
|
|
35
|
+
background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
|
|
36
|
+
border: 1px dashed #cbd5e1;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&__loadingDot {
|
|
40
|
+
width: 6px;
|
|
41
|
+
height: 6px;
|
|
42
|
+
border-radius: 50%;
|
|
43
|
+
background: #6366f1;
|
|
44
|
+
opacity: 0.35;
|
|
45
|
+
animation: showHealthResultPulse 1.1s ease-in-out infinite;
|
|
46
|
+
|
|
47
|
+
&:nth-child(2) {
|
|
48
|
+
animation-delay: 0.15s;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&:nth-child(3) {
|
|
52
|
+
animation-delay: 0.3s;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&__loadingText {
|
|
57
|
+
width: 100%;
|
|
58
|
+
text-align: center;
|
|
59
|
+
font-size: 12px;
|
|
60
|
+
color: #64748b;
|
|
61
|
+
letter-spacing: 0.02em;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&__placeholder {
|
|
65
|
+
margin-top: 4px;
|
|
66
|
+
padding: 18px 16px;
|
|
67
|
+
border-radius: 12px;
|
|
68
|
+
border: 1px solid #e2e8f0;
|
|
69
|
+
background: #f8fafc;
|
|
70
|
+
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&__placeholder--empty {
|
|
74
|
+
border-color: #e0e7ff;
|
|
75
|
+
background: linear-gradient(160deg, #f5f7ff 0%, #eef2ff 55%, #f8fafc 100%);
|
|
76
|
+
|
|
77
|
+
.showHealthResult__c__placeholderTitle {
|
|
78
|
+
color: #3730a3;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.showHealthResult__c__placeholderHint {
|
|
82
|
+
color: #64748b;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&__placeholder--error {
|
|
87
|
+
border-color: #fecaca;
|
|
88
|
+
background: linear-gradient(160deg, #fffbeb 0%, #fef2f2 45%, #fff 100%);
|
|
89
|
+
|
|
90
|
+
.showHealthResult__c__placeholderTitle {
|
|
91
|
+
color: #991b1b;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.showHealthResult__c__placeholderMsg {
|
|
95
|
+
color: #b91c1c;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
&__placeholderBody {
|
|
100
|
+
min-width: 0;
|
|
101
|
+
flex: 1;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
&__placeholderTitle {
|
|
105
|
+
font-size: 13px;
|
|
106
|
+
font-weight: 600;
|
|
107
|
+
line-height: 1.4;
|
|
108
|
+
margin-bottom: 6px;
|
|
109
|
+
color: #334155;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
&__placeholderHint {
|
|
113
|
+
font-size: 12px;
|
|
114
|
+
line-height: 1.55;
|
|
115
|
+
color: #64748b;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
&__placeholderMsg {
|
|
119
|
+
font-size: 12px;
|
|
120
|
+
line-height: 1.55;
|
|
121
|
+
word-break: break-word;
|
|
122
|
+
color: #64748b;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
@keyframes showHealthResultPulse {
|
|
127
|
+
0%,
|
|
128
|
+
100% {
|
|
129
|
+
opacity: 0.35;
|
|
130
|
+
transform: scale(1);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
50% {
|
|
134
|
+
opacity: 1;
|
|
135
|
+
transform: scale(1.15);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# XObject Data Table Component (Simplified)
|
|
2
|
+
|
|
3
|
+
An XObject-based data table component that only supports data display. Table columns are dynamically generated based on fields returned by `xObject.getDesc`.
|
|
4
|
+
Note: Uses methods provided by the Neo Open API SDK (neo-open-api) to implement data object query operations.
|
|
5
|
+
|
|
6
|
+
## Features
|
|
7
|
+
|
|
8
|
+
- **Dynamic Table Columns**: Automatically generates table columns based on XObject field descriptions
|
|
9
|
+
- **Data Display**: Supports displaying XObject entity data
|
|
10
|
+
- **Responsive Design**: Adapts to different screen sizes
|
|
11
|
+
- **Property Configuration**: Supports configuring component properties through the editor
|
|
12
|
+
|
|
13
|
+
## Component Properties
|
|
14
|
+
|
|
15
|
+
| Property | Type | Default | Description |
|
|
16
|
+
|----------|------|---------|-------------|
|
|
17
|
+
| title | string | 'Data Table' | Table title |
|
|
18
|
+
| xObjectDataApi | object | - | Entity data source configuration |
|
|
19
|
+
| xObjectDataApi.xObjectApiKey | string | '' | Data object API Key |
|
|
20
|
+
| xObjectDataApi.fields | string[] | [] | List of fields to display |
|
|
21
|
+
|
|
22
|
+
## Usage
|
|
23
|
+
|
|
24
|
+
### 1. Using in the Editor
|
|
25
|
+
|
|
26
|
+
1. Drag the "Entity Data Table (Simplified)" component from the component panel to the page
|
|
27
|
+
2. Select the data object to operate on in the right property panel
|
|
28
|
+
3. Configure the fields to display (optional)
|
|
29
|
+
4. Save and preview
|
|
30
|
+
|
|
31
|
+
### 2. Using in Code
|
|
32
|
+
|
|
33
|
+
```tsx
|
|
34
|
+
import SimpleTable from './components/simpleTable__c';
|
|
35
|
+
|
|
36
|
+
// Use the component
|
|
37
|
+
<SimpleTable
|
|
38
|
+
xObjectDataApi={{
|
|
39
|
+
xObjectApiKey: 'customContact__c',
|
|
40
|
+
fields: ['name', 'phone__c'],
|
|
41
|
+
}}
|
|
42
|
+
/>
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Technical Implementation
|
|
46
|
+
|
|
47
|
+
### Core Dependencies
|
|
48
|
+
|
|
49
|
+
- **Ant Design**: UI component library
|
|
50
|
+
- **React**: Frontend framework
|
|
51
|
+
- **TypeScript**: Type support
|
|
52
|
+
|
|
53
|
+
### Data Flow
|
|
54
|
+
|
|
55
|
+
1. **Initialization**: Fetches field descriptions when the component mounts
|
|
56
|
+
2. **Column Generation**: Dynamically generates table columns based on field descriptions
|
|
57
|
+
3. **Data Loading**: Uses `xObject.query` to fetch data list
|
|
58
|
+
|
|
59
|
+
## Style Customization
|
|
60
|
+
|
|
61
|
+
The component provides complete SCSS style files, supporting the following customizations:
|
|
62
|
+
|
|
63
|
+
- Table styles (borders, hover effects, etc.)
|
|
64
|
+
- Responsive design (mobile adaptation)
|
|
65
|
+
|
|
66
|
+
## Notes
|
|
67
|
+
|
|
68
|
+
1. **Permission Requirements**: Ensure the user has read access to the corresponding XObject
|
|
69
|
+
2. **Field Types**: Supports display of all basic field types
|
|
70
|
+
3. **Error Handling**: The component has built-in comprehensive error handling and user prompts
|
|
71
|
+
|
|
72
|
+
## Differences from Full Version
|
|
73
|
+
|
|
74
|
+
This simplified version compared to the full `entityTable__c` component:
|
|
75
|
+
|
|
76
|
+
- **No Create**: Removed record creation functionality
|
|
77
|
+
- **No Edit**: Removed record editing functionality
|
|
78
|
+
- **No Delete**: Removed record deletion functionality
|
|
79
|
+
- **No Refresh**: Removed manual refresh button
|
|
80
|
+
- **No Pagination**: Removed pagination, displays all data
|
|
81
|
+
- **Display Only**: Focused on data display functionality
|
|
82
|
+
|
|
83
|
+
## Extension Development
|
|
84
|
+
|
|
85
|
+
To extend functionality, you can:
|
|
86
|
+
|
|
87
|
+
1. **Add Field Type Support**: Add field formatting logic in the `generateColumns()` method
|
|
88
|
+
2. **Custom Styles**: Modify the `style.scss` file to customize component appearance
|
|
89
|
+
3. **Add Sorting**: Extend table functionality to support column sorting
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
// CSS variables
|
|
2
|
+
:root {
|
|
3
|
+
--background-color: #f5f6fa;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
// SASS variables
|
|
7
|
+
$background-color: #f5f6fa;
|
|
8
|
+
// Custom common styles
|
|
9
|
+
|
|
10
|
+
/* AI Win Rate: hover card (aligned with demo.html #winRateTooltip) */
|
|
11
|
+
.simpleTable-winrate-trigger {
|
|
12
|
+
cursor: pointer;
|
|
13
|
+
border: none !important;
|
|
14
|
+
// border-bottom: 1px dashed rgba(99, 102, 241, 0.45);
|
|
15
|
+
// padding-bottom: 1px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.simpleTable-winrate-popover {
|
|
19
|
+
.ant-popover-inner {
|
|
20
|
+
padding: 0;
|
|
21
|
+
border-radius: 10px;
|
|
22
|
+
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.ant-popover-inner-content {
|
|
26
|
+
padding: 0;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.ant-popover-arrow {
|
|
30
|
+
display: none !important;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* Health score column hover: embedded showHealthResult__c */
|
|
35
|
+
.simpleTable-health-popover-trigger {
|
|
36
|
+
cursor: pointer;
|
|
37
|
+
display: inline-block;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.simpleTable-health-popover-overlay {
|
|
41
|
+
.ant-popover-inner {
|
|
42
|
+
padding: 0;
|
|
43
|
+
border-radius: 10px;
|
|
44
|
+
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.ant-popover-inner-content {
|
|
48
|
+
padding: 0;
|
|
49
|
+
max-width: min(440px, 92vw);
|
|
50
|
+
max-height: 520px;
|
|
51
|
+
overflow: auto;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.ant-popover-arrow {
|
|
55
|
+
display: none !important;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.simpleTable-health-popover-body {
|
|
60
|
+
min-width: 300px;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.simpleTable-change-popover {
|
|
64
|
+
.ant-popover-inner {
|
|
65
|
+
padding: 0;
|
|
66
|
+
border-radius: 10px;
|
|
67
|
+
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.ant-popover-inner-content {
|
|
71
|
+
padding: 16px;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.ant-popover-arrow {
|
|
75
|
+
display: none !important;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.simpleTable-winrate-card {
|
|
80
|
+
width: 320px;
|
|
81
|
+
border-radius: 10px;
|
|
82
|
+
font-size: 13px;
|
|
83
|
+
box-shadow: none;
|
|
84
|
+
|
|
85
|
+
.ant-card-body {
|
|
86
|
+
padding: 16px;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
&__baseline {
|
|
90
|
+
font-weight: 600;
|
|
91
|
+
font-size: 12px;
|
|
92
|
+
color: #888;
|
|
93
|
+
margin-bottom: 10px;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&__baseline-val {
|
|
97
|
+
color: #262626;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&__hr {
|
|
101
|
+
border: none;
|
|
102
|
+
border-top: 1px solid #eee;
|
|
103
|
+
margin: 8px 0;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
&__section-title {
|
|
107
|
+
font-weight: 600;
|
|
108
|
+
margin-bottom: 4px;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&__positives {
|
|
112
|
+
color: #22c55e;
|
|
113
|
+
margin-bottom: 8px;
|
|
114
|
+
white-space: pre-wrap;
|
|
115
|
+
word-break: break-word;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
&__negatives {
|
|
119
|
+
color: #ef4444;
|
|
120
|
+
margin-bottom: 8px;
|
|
121
|
+
white-space: pre-wrap;
|
|
122
|
+
word-break: break-word;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
&__footer {
|
|
126
|
+
display: flex;
|
|
127
|
+
justify-content: space-between;
|
|
128
|
+
align-items: center;
|
|
129
|
+
font-weight: 700;
|
|
130
|
+
font-size: 16px;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
&__winrate-val {
|
|
134
|
+
color: #6366f1;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.simpleTable-cell-trend-wrap {
|
|
139
|
+
display: inline-flex;
|
|
140
|
+
align-items: center;
|
|
141
|
+
gap: 6px;
|
|
142
|
+
max-width: 100%;
|
|
143
|
+
|
|
144
|
+
&__text {
|
|
145
|
+
min-width: 0;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
&__arrow {
|
|
149
|
+
flex-shrink: 0;
|
|
150
|
+
cursor: pointer;
|
|
151
|
+
line-height: 1;
|
|
152
|
+
|
|
153
|
+
.simpleTable-trend {
|
|
154
|
+
cursor: pointer;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.simpleTable-trend {
|
|
160
|
+
font-weight: 700;
|
|
161
|
+
font-size: 13px;
|
|
162
|
+
|
|
163
|
+
&--up {
|
|
164
|
+
color: #22c55e;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
&--down {
|
|
168
|
+
color: #ef4444;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.simpleTable-change-tip {
|
|
173
|
+
max-width: 280px;
|
|
174
|
+
font-size: 13px;
|
|
175
|
+
|
|
176
|
+
&__title {
|
|
177
|
+
font-weight: 700;
|
|
178
|
+
font-size: 14px;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
&__detail {
|
|
182
|
+
margin: 6px 0;
|
|
183
|
+
color: #333;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
&__meta {
|
|
187
|
+
color: #999;
|
|
188
|
+
font-size: 12px;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
&__to {
|
|
192
|
+
color: #ec4899;
|
|
193
|
+
font-weight: 600;
|
|
194
|
+
}
|
|
195
|
+
}
|