neo-cmp-cli 1.13.16 → 1.13.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (151) hide show
  1. package/README.md +2 -1
  2. package/dist/index2.js +1 -1
  3. package/dist/main2.js +1 -1
  4. package/dist/neo/neoLogin.js +1 -1
  5. package/dist/package.json.js +1 -1
  6. package/package.json +1 -1
  7. package/template/antd-custom-cmp-template/package.json +1 -1
  8. package/template/asset-manage-template/package.json +2 -2
  9. package/template/echarts-custom-cmp-template/package.json +1 -1
  10. package/template/empty-custom-cmp-template/package.json +2 -2
  11. package/template/map-custom-cmp-template/package.json +1 -1
  12. package/template/neo-bi-cmps/neo.config.js +7 -1
  13. package/template/neo-bi-cmps/package.json +8 -7
  14. package/template/neo-bi-cmps/public/403.html +77 -0
  15. package/template/neo-bi-cmps/public/demo.html +2453 -0
  16. package/template/neo-bi-cmps/src/assets/icon/barChart.svg +1 -0
  17. package/template/neo-bi-cmps/src/assets/icon/card.svg +1 -0
  18. package/template/neo-bi-cmps/src/assets/icon/filter.svg +1 -0
  19. package/template/neo-bi-cmps/src/assets/icon/funnel.svg +1 -0
  20. package/template/neo-bi-cmps/src/assets/icon/tab.svg +1 -0
  21. package/template/neo-bi-cmps/src/components/filterBar__c/README.md +3 -14
  22. package/template/neo-bi-cmps/src/components/filterBar__c/common.scss +29 -0
  23. package/template/neo-bi-cmps/src/components/filterBar__c/index.tsx +668 -146
  24. package/template/neo-bi-cmps/src/components/filterBar__c/model.ts +26 -48
  25. package/template/neo-bi-cmps/src/components/filterBar__c/style.scss +46 -139
  26. package/template/neo-bi-cmps/src/components/targetNumber__c/customStyleConfig/index.tsx +11 -10
  27. package/template/neo-bi-cmps/src/components/targetNumber__c/index.tsx +9 -16
  28. package/template/neo-bi-cmps/src/utils/common.ts +231 -0
  29. package/template/neo-bi-cmps/src/utils/filter2chartFilter.ts +268 -0
  30. package/template/neo-bi-cmps/src/utils/filterBar.ts +140 -0
  31. package/template/neo-bi-cmps/src/utils/pipelineFunnel.ts +341 -0
  32. package/template/neo-bi-cmps/src/utils/queryByCustomSQL.ts +117 -0
  33. package/template/neo-bi-cmps/src/utils/requestDebounce.ts +22 -0
  34. package/template/neo-bi-cmps/src/utils/simpleTable.tsx +344 -0
  35. package/template/neo-bi-cmps/src/utils/stageSwitch.ts +15 -0
  36. package/template/neo-bi-cmps/src/utils/stageTimeChart.ts +90 -0
  37. package/template/neo-bi-cmps/src/utils/targetNumber.ts +12 -0
  38. package/template/neo-custom-cmp-template/package.json +2 -2
  39. package/template/neo-h5-cmps/package.json +2 -2
  40. package/template/neo-order-cmps/package.json +2 -2
  41. package/template/neo-pipeline-cmps/.prettierrc.js +12 -0
  42. package/template/neo-pipeline-cmps/@types/neo-ui-common.d.ts +36 -0
  43. package/template/neo-pipeline-cmps/README.md +99 -0
  44. package/template/neo-pipeline-cmps/commitlint.config.js +59 -0
  45. package/template/neo-pipeline-cmps/neo.config.js +124 -0
  46. package/template/neo-pipeline-cmps/package.json +66 -0
  47. package/template/neo-pipeline-cmps/public/403.html +77 -0
  48. package/template/neo-pipeline-cmps/public/css/base.css +283 -0
  49. package/template/neo-pipeline-cmps/public/demo.html +2453 -0
  50. package/template/neo-pipeline-cmps/public/scripts/app/bluebird.js +6679 -0
  51. package/template/neo-pipeline-cmps/public/template.html +13 -0
  52. package/template/neo-pipeline-cmps/src/assets/css/common.scss +127 -0
  53. package/template/neo-pipeline-cmps/src/assets/css/mixin.scss +47 -0
  54. package/template/neo-pipeline-cmps/src/assets/icon/barChart.svg +1 -0
  55. package/template/neo-pipeline-cmps/src/assets/icon/card.svg +1 -0
  56. package/template/neo-pipeline-cmps/src/assets/icon/filter.svg +1 -0
  57. package/template/neo-pipeline-cmps/src/assets/icon/funnel.svg +1 -0
  58. package/template/neo-pipeline-cmps/src/assets/icon/tab.svg +1 -0
  59. package/template/neo-pipeline-cmps/src/assets/img/AIBtn.gif +0 -0
  60. package/template/neo-pipeline-cmps/src/assets/img/NeoCRM.jpg +0 -0
  61. package/template/neo-pipeline-cmps/src/assets/img/aiLogo.png +0 -0
  62. package/template/neo-pipeline-cmps/src/assets/img/card-list.svg +1 -0
  63. package/template/neo-pipeline-cmps/src/assets/img/contact-form.svg +1 -0
  64. package/template/neo-pipeline-cmps/src/assets/img/custom-form.svg +1 -0
  65. package/template/neo-pipeline-cmps/src/assets/img/custom-widget.svg +1 -0
  66. package/template/neo-pipeline-cmps/src/assets/img/data-list.svg +1 -0
  67. package/template/neo-pipeline-cmps/src/assets/img/detail.svg +1 -0
  68. package/template/neo-pipeline-cmps/src/assets/img/favicon.png +0 -0
  69. package/template/neo-pipeline-cmps/src/assets/img/map.svg +1 -0
  70. package/template/neo-pipeline-cmps/src/assets/img/search.svg +1 -0
  71. package/template/neo-pipeline-cmps/src/assets/img/table.svg +1 -0
  72. package/template/neo-pipeline-cmps/src/components/filterBar__c/README.md +24 -0
  73. package/template/neo-pipeline-cmps/src/components/filterBar__c/common.scss +29 -0
  74. package/template/neo-pipeline-cmps/src/components/filterBar__c/index.tsx +730 -0
  75. package/template/neo-pipeline-cmps/src/components/filterBar__c/model.ts +50 -0
  76. package/template/neo-pipeline-cmps/src/components/filterBar__c/style.scss +119 -0
  77. package/template/neo-pipeline-cmps/src/components/pipelineFunnel__c/index.tsx +415 -0
  78. package/template/neo-pipeline-cmps/src/components/pipelineFunnel__c/model.ts +79 -0
  79. package/template/neo-pipeline-cmps/src/components/pipelineFunnel__c/style.scss +83 -0
  80. package/template/neo-pipeline-cmps/src/components/showHealthResult__c/index.tsx +463 -0
  81. package/template/neo-pipeline-cmps/src/components/showHealthResult__c/model.ts +45 -0
  82. package/template/neo-pipeline-cmps/src/components/showHealthResult__c/style.scss +137 -0
  83. package/template/neo-pipeline-cmps/src/components/simpleTable__c/README.md +90 -0
  84. package/template/neo-pipeline-cmps/src/components/simpleTable__c/common.scss +195 -0
  85. package/template/neo-pipeline-cmps/src/components/simpleTable__c/index.tsx +665 -0
  86. package/template/neo-pipeline-cmps/src/components/simpleTable__c/model.ts +124 -0
  87. package/template/neo-pipeline-cmps/src/components/simpleTable__c/style.scss +193 -0
  88. package/template/neo-pipeline-cmps/src/components/stageSwitch__c/index.tsx +511 -0
  89. package/template/neo-pipeline-cmps/src/components/stageSwitch__c/model.ts +70 -0
  90. package/template/{neo-bi-cmps → neo-pipeline-cmps}/src/components/stageSwitch__c/style.scss +4 -2
  91. package/template/neo-pipeline-cmps/src/components/stageTimeChart__c/index.tsx +455 -0
  92. package/template/neo-pipeline-cmps/src/components/stageTimeChart__c/model.ts +103 -0
  93. package/template/{neo-bi-cmps → neo-pipeline-cmps}/src/components/stageTimeChart__c/style.scss +3 -2
  94. package/template/neo-pipeline-cmps/src/utils/common.ts +229 -0
  95. package/template/neo-pipeline-cmps/src/utils/filter2chartFilter.ts +268 -0
  96. package/template/neo-pipeline-cmps/src/utils/filterBar.ts +140 -0
  97. package/template/neo-pipeline-cmps/src/utils/pipelineFunnel.ts +343 -0
  98. package/template/neo-pipeline-cmps/src/utils/queryByCustomSQL.ts +117 -0
  99. package/template/neo-pipeline-cmps/src/utils/requestDebounce.ts +22 -0
  100. package/template/neo-pipeline-cmps/src/utils/simpleTable.tsx +344 -0
  101. package/template/neo-pipeline-cmps/src/utils/stageSwitch.ts +15 -0
  102. package/template/neo-pipeline-cmps/src/utils/stageTimeChart.ts +90 -0
  103. package/template/neo-pipeline-cmps/src/utils/targetNumber.ts +12 -0
  104. package/template/neo-pipeline-cmps/tsconfig.json +40 -0
  105. package/template/neo-web-entity-grid/package.json +2 -2
  106. package/template/neo-web-form/package.json +2 -2
  107. package/template/react-custom-cmp-template/package.json +1 -1
  108. package/template/react-ts-custom-cmp-template/package.json +1 -1
  109. package/template/vue2-custom-cmp-template/package.json +1 -1
  110. package/template/neo-bi-cmps/.npmrc copy +0 -1
  111. package/template/neo-bi-cmps/src/components/aiCommitDrawer__c/README.md +0 -52
  112. package/template/neo-bi-cmps/src/components/aiCommitDrawer__c/index.tsx +0 -183
  113. package/template/neo-bi-cmps/src/components/aiCommitDrawer__c/model.ts +0 -90
  114. package/template/neo-bi-cmps/src/components/aiCommitDrawer__c/style.scss +0 -218
  115. package/template/neo-bi-cmps/src/components/forecastChart__c/README.md +0 -31
  116. package/template/neo-bi-cmps/src/components/forecastChart__c/index.tsx +0 -158
  117. package/template/neo-bi-cmps/src/components/forecastChart__c/model.ts +0 -40
  118. package/template/neo-bi-cmps/src/components/forecastChart__c/style.scss +0 -154
  119. package/template/neo-bi-cmps/src/components/forecastGrid__c/README.md +0 -36
  120. package/template/neo-bi-cmps/src/components/forecastGrid__c/index.tsx +0 -86
  121. package/template/neo-bi-cmps/src/components/forecastGrid__c/model.ts +0 -62
  122. package/template/neo-bi-cmps/src/components/forecastGrid__c/style.scss +0 -48
  123. package/template/neo-bi-cmps/src/components/gapCloser__c/README.md +0 -24
  124. package/template/neo-bi-cmps/src/components/gapCloser__c/index.tsx +0 -100
  125. package/template/neo-bi-cmps/src/components/gapCloser__c/model.ts +0 -46
  126. package/template/neo-bi-cmps/src/components/gapCloser__c/style.scss +0 -60
  127. package/template/neo-bi-cmps/src/components/kpiCards__c/README.md +0 -35
  128. package/template/neo-bi-cmps/src/components/kpiCards__c/index.tsx +0 -70
  129. package/template/neo-bi-cmps/src/components/kpiCards__c/model.ts +0 -50
  130. package/template/neo-bi-cmps/src/components/kpiCards__c/style.scss +0 -33
  131. package/template/neo-bi-cmps/src/components/oppList__c/README.md +0 -52
  132. package/template/neo-bi-cmps/src/components/oppList__c/index.tsx +0 -285
  133. package/template/neo-bi-cmps/src/components/oppList__c/model.ts +0 -86
  134. package/template/neo-bi-cmps/src/components/oppList__c/style.scss +0 -133
  135. package/template/neo-bi-cmps/src/components/pipelineFunnel__c/index.tsx +0 -130
  136. package/template/neo-bi-cmps/src/components/pipelineFunnel__c/model.ts +0 -66
  137. package/template/neo-bi-cmps/src/components/pipelineFunnel__c/style.scss +0 -133
  138. package/template/neo-bi-cmps/src/components/stageSwitch__c/index.tsx +0 -118
  139. package/template/neo-bi-cmps/src/components/stageSwitch__c/model.ts +0 -92
  140. package/template/neo-bi-cmps/src/components/stageTimeChart__c/index.tsx +0 -126
  141. package/template/neo-bi-cmps/src/components/stageTimeChart__c/model.ts +0 -57
  142. package/template/neo-bi-cmps/src/components/tabSwitch__c/README.md +0 -37
  143. package/template/neo-bi-cmps/src/components/tabSwitch__c/index.tsx +0 -80
  144. package/template/neo-bi-cmps/src/components/tabSwitch__c/model.ts +0 -45
  145. package/template/neo-bi-cmps/src/components/tabSwitch__c/style.scss +0 -37
  146. package/template/neo-bi-cmps/src/utils/axiosFetcher.ts +0 -37
  147. package/template/neo-bi-cmps/src/utils/queryObjectData.ts +0 -76
  148. package/template/neo-bi-cmps/src/utils/xobjects.ts +0 -162
  149. /package/template/{neo-bi-cmps → neo-pipeline-cmps}/src/components/pipelineFunnel__c/README.md +0 -0
  150. /package/template/{neo-bi-cmps → neo-pipeline-cmps}/src/components/stageSwitch__c/README.md +0 -0
  151. /package/template/{neo-bi-cmps → neo-pipeline-cmps}/src/components/stageTimeChart__c/README.md +0 -0
@@ -0,0 +1,124 @@
1
+ /**
2
+ * @file XObject 表格组件对接编辑器的描述文件(简化版)
3
+ * @description 定义组件在 Neo 平台编辑器中的配置信息
4
+ * @author Neo Custom Widget CLI
5
+ * @version 1.0.0
6
+ */
7
+ export class SimpleTableModel {
8
+ /**
9
+ * 组件类型标识
10
+ * 用于标识组件的唯一性,在构建时根据当前组件目录名称自动生成
11
+ * 注意:此字段在构建时会被自动替换,不需要手动设置
12
+ */
13
+ // cmpType: string = 'simpleTable';
14
+
15
+ /** 组件名称,用于设置在编辑器左侧组件面板中展示的名称 */
16
+ label: string = '商机列表';
17
+
18
+ /** 组件描述,用于设置在编辑器左侧组件面板中展示的描述 */
19
+ description: string =
20
+ '基于 XObject 的数据表格组件,仅支持数据展示,不支持增删改查操作';
21
+
22
+ /** 分类标签,用于设置在编辑器左侧组件面板哪个分类中展示 */
23
+ // tags: string[] = ['自定义组件'];
24
+
25
+ /** 组件图标,用于设置在编辑器左侧组件面板中展示的图标 */
26
+ iconUrl: string = 'https://custom-widgets.bj.bcebos.com/table.svg';
27
+
28
+ /**
29
+ * 用于设置组件支持的页面类型
30
+ *
31
+ * 当前 NeoCRM 平台存在的页面类型:
32
+ * all: 1 全页面
33
+ * entityFormPage: 4 实体表单页
34
+ * customPage: 6 自定义页面
35
+ */
36
+ targetPage: string[] = ['all'];
37
+
38
+ /**
39
+ * 用于设置组件支持的终端类型
40
+ *
41
+ * 当前 NeoCRM 平台存在的终端类型:
42
+ * web: 网页端
43
+ * mobile: 移动端
44
+ */
45
+ targetDevice: string = 'web';
46
+
47
+ /** 初次插入页面的默认属性数据 */
48
+ defaultComProps = {
49
+ title: 'Opportunity List',
50
+ activeStage: 'Prospecting',
51
+ description: 'Filtered by Close Date, Opportunity Owner, Business Type',
52
+ };
53
+
54
+ // 当前组件支持的函数列表(其他组件可触发当前组件的函数)
55
+ functions = [
56
+ {
57
+ apiKey: 'loadData',
58
+ label: '刷新表格',
59
+ helpTextKey: '刷新当前表格数据',
60
+ },
61
+ {
62
+ apiKey: 'setFilter',
63
+ label: '设置过滤条件',
64
+ helpTextKey:
65
+ '设置与图表一致的 filter(closeDate / ownerId / entityType),并重新查询表格',
66
+ funcInParams: [
67
+ {
68
+ apiKey: 'filter',
69
+ label: '过滤条件数据',
70
+ type: 'Object',
71
+ required: false,
72
+ },
73
+ ],
74
+ },
75
+ {
76
+ apiKey: 'updateActiveStage',
77
+ label: '更新当前激活阶段',
78
+ helpTextKey: '设置当前激活的销售阶段',
79
+ funcInParams: [
80
+ {
81
+ apiKey: 'activeStage',
82
+ label: '当前激活阶段',
83
+ type: 'String',
84
+ required: false,
85
+ },
86
+ ],
87
+ },
88
+ ];
89
+
90
+ /**
91
+ * 组件属性配置模式
92
+ * 支持静态配置:propsSchema,优先级比 propsSchemaCreator 低
93
+ * 定义组件在编辑器中可配置的属性
94
+ */
95
+ propsSchema = [
96
+ {
97
+ type: 'panelInput',
98
+ name: 'title',
99
+ label: '表格标题',
100
+ placeholder: '请输入表格标题',
101
+ },
102
+ {
103
+ type: 'panelInput',
104
+ name: 'description',
105
+ label: '表格说明',
106
+ placeholder: '显示在标题下方的说明文字',
107
+ },
108
+ /*
109
+ {
110
+ type: 'xObjectDataApi', // 用于获取实体业务数据列表的配置项
111
+ name: 'xObjectDataApi',
112
+ label: '实体数据源',
113
+ value: {
114
+ xObjectApiKey: 'customContact__c',
115
+ fields: ['name', 'phone__c'],
116
+ },
117
+ placeholder: '请选择实体数据源',
118
+ custom: true,
119
+ },
120
+ */
121
+ ];
122
+ }
123
+
124
+ export default SimpleTableModel;
@@ -0,0 +1,193 @@
1
+ /** 表头 AI 图标:用法同 openChatPageBtn 的 openChatPageBtn-icon(背景图) */
2
+ .simpleTable-th-title-with-ai-icon {
3
+ display: inline-flex;
4
+ align-items: center;
5
+ gap: 6px;
6
+ }
7
+
8
+ .simpleTable-th-ai-icon {
9
+ width: 18px;
10
+ height: 18px;
11
+ flex-shrink: 0;
12
+ background-image: url('../../assets/img/aiLogo.png');
13
+ background-size: contain;
14
+ background-position: center;
15
+ background-repeat: no-repeat;
16
+ display: inline-block;
17
+ }
18
+
19
+ .simpleTable__c {
20
+ background: #fff;
21
+ border-radius: 8px;
22
+
23
+ .table-wrapper {
24
+ // border: 1px solid #ddd;
25
+ padding: 16px 20px;
26
+ display: flex;
27
+ flex-direction: column;
28
+ overflow: hidden;
29
+ }
30
+
31
+ .panel-header {
32
+ padding: 12px 0 6px 0;
33
+ background: #fff;
34
+ border-bottom: 1px solid #ddd;
35
+ display: flex;
36
+ justify-content: space-between;
37
+ align-items: flex-start;
38
+
39
+ .panel-header-text {
40
+ flex: 1;
41
+ min-width: 0;
42
+ }
43
+
44
+ h3 {
45
+ margin: 0;
46
+ font-size: 14px;
47
+ font-weight: 600;
48
+ color: #262626;
49
+ }
50
+
51
+ .panel-header-description {
52
+ margin: 6px 0 0;
53
+ font-size: 12px;
54
+ color: #888;
55
+ line-height: 1.5;
56
+ }
57
+
58
+ .panel-header-summary {
59
+ flex-shrink: 0;
60
+ margin-left: 12px;
61
+ padding-top: 2px;
62
+ font-size: 13px;
63
+ font-weight: 500;
64
+ color: #666;
65
+ line-height: 1.4;
66
+ text-align: right;
67
+ white-space: nowrap;
68
+
69
+ .summary-amount {
70
+ font-weight: 700;
71
+ }
72
+ }
73
+ }
74
+
75
+ .table-container {
76
+ flex: 1;
77
+ overflow-y: auto;
78
+
79
+ .ant-table {
80
+ .ant-table-thead > tr > th {
81
+ background-color: #f9f9f9;
82
+ font-weight: 600;
83
+ color: #262626;
84
+ border-bottom: 1px solid #eee;
85
+ padding: 10px;
86
+ text-align: left;
87
+ font-size: 13px;
88
+ position: sticky;
89
+ top: 0;
90
+ }
91
+
92
+ .ant-table-tbody > tr > td {
93
+ border-bottom: 1px solid #eee;
94
+ padding: 10px;
95
+ text-align: left;
96
+ font-size: 13px;
97
+ }
98
+
99
+ .ant-table-tbody > tr:hover > td {
100
+ background-color: #f5f5f5;
101
+ }
102
+ }
103
+
104
+ .ant-empty {
105
+ padding: 40px 0;
106
+
107
+ .ant-empty-description {
108
+ color: #8c8c8c;
109
+ font-size: 14px;
110
+ }
111
+ }
112
+ }
113
+
114
+ .ant-spin {
115
+ .ant-spin-dot {
116
+ font-size: 20px;
117
+ }
118
+
119
+ .ant-spin-text {
120
+ color: #8c8c8c;
121
+ font-size: 14px;
122
+ }
123
+ }
124
+
125
+ .simpleTable-opp-name-link {
126
+ color: #1677ff;
127
+ text-decoration: none;
128
+ cursor: pointer;
129
+
130
+ &:hover {
131
+ text-decoration: underline;
132
+ }
133
+ }
134
+
135
+ .opp-health-tag {
136
+ display: inline-block;
137
+ padding: 2px 10px;
138
+ border-radius: 4px;
139
+ font-size: 12px;
140
+ font-weight: 500;
141
+ line-height: 1.4;
142
+ white-space: nowrap;
143
+ }
144
+
145
+ .opp-health-tag--green {
146
+ background: #22c55f;
147
+ color: #fff;
148
+ }
149
+
150
+ .opp-health-tag--yellow {
151
+ background: #f59e0d;
152
+ color: #fff;
153
+ }
154
+
155
+ .opp-health-tag--red {
156
+ background: #ef4444;
157
+ color: #fff;
158
+ }
159
+
160
+ // 响应式设计
161
+ @media (max-width: 768px) {
162
+ .panel-header {
163
+ padding: 12px;
164
+ }
165
+
166
+ .table-container {
167
+ .ant-table {
168
+ .ant-table-thead > tr > th,
169
+ .ant-table-tbody > tr > td {
170
+ padding: 8px 12px;
171
+ font-size: 12px;
172
+ }
173
+ }
174
+ }
175
+ }
176
+
177
+ @media (max-width: 576px) {
178
+ .panel-header {
179
+ padding: 10px;
180
+ }
181
+
182
+ .table-container {
183
+ .ant-table {
184
+ .ant-table-thead > tr > th,
185
+ .ant-table-tbody > tr > td {
186
+ padding: 6px 8px;
187
+ font-size: 12px;
188
+ }
189
+ }
190
+ }
191
+ }
192
+ }
193
+