@steedos-labs/plugin-workflow 3.0.39 → 3.0.41

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 (39) hide show
  1. package/designer/dist/amis-renderer/amis-renderer.css +1 -1
  2. package/designer/dist/amis-renderer/amis-renderer.js +1 -1
  3. package/designer/dist/assets/index-7cMOmCg4.css +1 -0
  4. package/designer/dist/assets/index-DbYFInYv.js +943 -0
  5. package/designer/dist/index.html +2 -2
  6. package/main/default/applications/approve_workflow.app.yml +3 -160
  7. package/main/default/applications/desktop.app.yml +21 -0
  8. package/main/default/client/socket.client.js +2 -5
  9. package/main/default/manager/handlers_manager.js +5 -2
  10. package/main/default/manager/instance_number_rules.js +1 -1
  11. package/main/default/manager/uuflow_manager.js +20 -2
  12. package/main/default/objects/instance_tasks/listviews/inbox.listview.yml +1 -1
  13. package/main/default/objects/instance_tasks/listviews/outbox.listview.yml +1 -1
  14. package/main/default/objects/instances/buttons/instance_delete.button.yml +7 -1
  15. package/main/default/objects/instances/buttons/instance_new.button.yml +2 -2
  16. package/main/default/objects/instances/listviews/completed.listview.yml +1 -1
  17. package/main/default/objects/instances/listviews/draft.listview.yml +1 -1
  18. package/main/default/objects/instances/listviews/monitor.listview.yml +1 -1
  19. package/main/default/objects/instances/listviews/pending.listview.yml +1 -1
  20. package/main/default/pages/flow_selector.page.amis.json +2 -2
  21. package/main/default/pages/flow_selector_mobile.page.amis.json +2 -2
  22. package/main/default/pages/page_instance_print.page.amis.json +11 -1
  23. package/main/default/routes/am.router.js +3 -1
  24. package/main/default/routes/api_auto_number.router.js +166 -23
  25. package/main/default/routes/api_workflow_ai_form_design.router.js +116 -16
  26. package/main/default/routes/api_workflow_ai_form_design_stream.router.js +115 -17
  27. package/main/default/routes/api_workflow_box_filter.router.js +2 -2
  28. package/main/default/routes/api_workflow_nav.router.js +1 -0
  29. package/main/default/services/flows.service.js +20 -24
  30. package/main/default/services/instance.service.js +6 -4
  31. package/main/default/test/test_badge_draft.js +12 -26
  32. package/main/default/test/test_badge_update.js +10 -54
  33. package/package.json +1 -1
  34. package/package.service.js +14 -0
  35. package/public/amis-renderer/amis-renderer.css +1 -1
  36. package/public/amis-renderer/amis-renderer.js +1 -1
  37. package/public/workflow/index.css +10 -279
  38. package/designer/dist/assets/index-CxYuhf9v.js +0 -757
  39. package/designer/dist/assets/index-Dve-EwQO.css +0 -1
@@ -50,99 +50,6 @@
50
50
  display: block !important;
51
51
  }
52
52
 
53
- .instance-box-tree .antd-TreeControl{
54
- padding: 0;
55
- background: #ffffff;
56
- }
57
-
58
- /* Remove default tree styling to allow custom styling */
59
- .instance-box-tree .antd-Tree-itemLabel-item{
60
- padding: 0 !important;
61
- margin: 0 !important;
62
- display: flex !important;
63
- align-items: center !important;
64
- width: 100%; /* Ensure it spans the width */
65
- }
66
-
67
- /* Ensure the label container is also flex centered and full width */
68
- .instance-box-tree .antd-Tree-itemLabel {
69
- display: flex !important;
70
- align-items: center !important;
71
- width: 100%;
72
- padding-right: 4px;
73
- }
74
-
75
- /* Tree item wrapper - removed margin to allow full-row background */
76
- /* .instance-box-tree .antd-TreeControl{
77
- padding: 0;
78
- border-bottom: 0px;
79
- border-radius: 0px;
80
- border-right: 0px;
81
- max-height: 100%;
82
- padding-top: 8px;
83
- padding-left: 4px;
84
- }
85
- .instance-box-tree .antd-Tree {
86
- max-height: 100%;
87
- }
88
- .instance-box-tree .antd-Tree-itemLabel{
89
- padding-left: 0;
90
- }
91
-
92
- .instance-box-tree .antd-Tree-itemLabel-item{
93
- padding-left: 0;
94
- }
95
- .instance-box-tree .antd-Tree-itemArrow{
96
- margin-right: 0;
97
- }
98
- .instance-box-tree .antd-Tree-itemIcon{
99
- margin-right: 4px;
100
- } */
101
- /* Fix Badge layout: force it to flow naturally in flex layout to display full content for large numbers like 9999 */
102
- /* Also ensures it stays aligned to the right of the text label without overlapping */
103
- .instance-box-tree .antd-Badge {
104
- height: auto !important;
105
- width: auto !important;
106
- position: static !important;
107
- transform: none !important;
108
- flex-shrink: 0;
109
- margin-left: 4px;
110
- display: flex;
111
- align-items: center;
112
- }
113
-
114
- .instance-box-tree .antd-Badge-text{
115
- background: #e5e7eb;
116
- color: #4b5563;
117
- font-size: 11px;
118
- padding: 0px 6px;
119
- border-radius: 10px;
120
- font-weight: 500;
121
- line-height: 18px;
122
- min-width: 18px;
123
- display: inline-block;
124
- text-align: center;
125
- position: static !important;
126
- transform: none !important;
127
- }
128
- .instance-box-tree .antd-Tree-item:nth-child(1) .antd-Badge-text{
129
- background: #ef4444;
130
- color: #ffffff;
131
- }
132
- /* .instance-box-tree .antd-Tree-itemLabel-item{
133
- height: 1.6rem;
134
- } */
135
- .instance-box-tree .antd-TplField span{
136
- /* width: 85%; */
137
- display: block;
138
- overflow: hidden;
139
- white-space: nowrap;
140
- text-overflow: ellipsis;
141
- }
142
- .instance-box-tree .antd-Tree-itemText{
143
- margin: auto;
144
- }
145
-
146
53
 
147
54
  .steedos-table-modal-body{
148
55
  display: initial !important;
@@ -152,168 +59,6 @@
152
59
  display: initial !important;
153
60
  }
154
61
 
155
- .instance-box-tree .antd-Tree{
156
- max-height: 100% !important;
157
- }
158
-
159
- .instance-box-tree .antd-TreeControl{
160
- border: none !important;
161
- }
162
-
163
- /* Base styling for all menu labels - must be specific enough */
164
- .instance-box-tree .antd-Tree .instance-menu-label {
165
- font-weight: 400;
166
- color: #6b7280;
167
- }
168
-
169
- /* Tree item spacing for proper layout */
170
- .instance-box-tree .antd-Tree-item {
171
- margin: 2px 8px;
172
- }
173
-
174
- /* Selected state styling - Using robust pseudo-element strategy for cross-browser support */
175
-
176
- /* 1. Reset positions to ensure clean background layering */
177
- .instance-box-tree .antd-Tree-item {
178
- margin: 2px 8px; /* Maintain standard margin */
179
- position: relative !important; /* Context for absolute positioning */
180
- z-index: 0; /* Create stacking context so -1 doesn't go behind the white container */
181
- }
182
-
183
- /* 2. Remove ANY positioning from the label so it doesn't trap the pseudo-element */
184
- .instance-box-tree .antd-Tree-itemLabel.is-checked {
185
- background-color: transparent !important;
186
- position: static !important;
187
- }
188
-
189
- /* 3. Helper to make label static if checked is on item */
190
- .instance-box-tree .antd-Tree-item.is-checked > .antd-Tree-itemLabel {
191
- background-color: transparent !important;
192
- position: static !important;
193
- }
194
-
195
- /* 4. The background pseudo-element */
196
- .instance-box-tree .antd-Tree-itemLabel.is-checked::before,
197
- .instance-box-tree .antd-Tree-item.is-checked > .antd-Tree-itemLabel::before {
198
- content: "";
199
- position: absolute;
200
- left: 0;
201
- right: 0;
202
- top: 0; /* Cover full height (margin handles the spacing) */
203
- bottom: 0;
204
- background-color: var(--color-brand-50, #dbeafe);
205
- border-radius: 6px;
206
- z-index: -1; /* Behind text */
207
- }
208
-
209
- .instance-box-tree .antd-Tree-itemLabel.is-checked .instance-menu-label,
210
- .instance-box-tree .antd-Tree-item.is-checked .instance-menu-label {
211
- color: var(--Menu-light-fontColor-onHover, #1e40af) !important;
212
- }
213
-
214
- .instance-box-tree .antd-Tree-itemLabel.is-checked .antd-Tree-itemIcon,
215
- .instance-box-tree .antd-Tree-item.is-checked .antd-Tree-itemIcon {
216
- color: var(--Menu-light-fontColor-onHover, #1e40af) !important;
217
- }
218
-
219
- /* Hover state - entire row with light gray background */
220
- .instance-box-tree .antd-Tree-item:hover {
221
- background-color: #f3f4f6;
222
- border-radius: 6px;
223
- margin: 2px 8px;
224
- }
225
-
226
- .instance-box-tree .antd-Tree-item.is-checked:hover {
227
- background-color: var(--color-brand-50, #dbeafe) !important;
228
- }
229
-
230
- /* Group title styling - larger and bolder */
231
- .instance-box-tree .antd-Tree .antd-Tree-item[aria-level="1"] .instance-menu-label {
232
- font-size: 13px !important;
233
- font-weight: 600;
234
- color: #374151;
235
- }
236
- --isL
237
- /* Child item (non-leaf) styling - normal size and weight */
238
- .instance-box-tree .antd-Tree .antd-Tree-item[aria-level="2"]:not(.is-leaf) .instance-menu-label {
239
- font-size: 13px !important;
240
- font-weight: 400;
241
- color: #6b7280;
242
- }
243
-
244
- /* Leaf node styling - darker and larger for prominence */
245
- .instance-box-tree .antd-Tree .antd-Tree-item--isLeaf .instance-menu-label {
246
- font-size: 14px !important;
247
- font-weight: 600 !important;
248
- color: rgb(71 85 105 / var(--tw-text-opacity, 1)) !important;
249
- }
250
-
251
- /* Override leaf node color when selected */
252
- .instance-box-tree .antd-Tree .antd-Tree-item--isLeaf .antd-Tree-itemLabel.is-checked .instance-menu-label {
253
- color: var(--Menu-light-fontColor-onHover, #1e40af) !important;
254
- font-weight: 600 !important;
255
- }
256
-
257
- /* Fix alignment and spacing for the custom menu template wrapper */
258
- .instance-box-tree .antd-Tree-itemText > div {
259
- padding-top: 0px !important; /* Reduced from 4px to fix "text too low" */
260
- padding-bottom: 0px !important;
261
- padding-right: 0px !important; /* Reduced to move content closer to right edge */
262
- line-height: 24px; /* Explicit line height to ensure centering */
263
- display: flex;
264
- align-items: center;
265
- }
266
-
267
- /* Ensure the text container takes available width */
268
- .instance-box-tree .antd-Tree-itemText {
269
- flex: 1;
270
- display: flex;
271
- align-items: center;
272
- position: relative; /* Ensure z-index works if needed */
273
- z-index: 1;
274
- min-width: 0; /* Enable truncation */
275
- }
276
-
277
- /* Icon styling */
278
- .instance-box-tree .antd-Tree-itemIcon{
279
- color: #6b7280;
280
- margin-right: 0px;
281
- }
282
-
283
- /* Hide icons for leaf nodes at level >= 3 (final menu items within category groups) */
284
- .instance-box-tree .antd-Tree .antd-Tree-item--isLeaf[style*="calc(2 *"] .antd-Tree-itemIcon,
285
- .instance-box-tree .antd-Tree .antd-Tree-item--isLeaf[style*="calc(3 *"] .antd-Tree-itemIcon,
286
- .instance-box-tree .antd-Tree .antd-Tree-item--isLeaf[style*="calc(4 *"] .antd-Tree-itemIcon,
287
- .instance-box-tree .antd-Tree .antd-Tree-item--isLeaf[style*="calc(5 *"] .antd-Tree-itemIcon {
288
- display: none;
289
- margin-right: 0px;
290
- }
291
-
292
- /* Reduce left padding for leaf nodes to compensate for hidden icon */
293
- .instance-box-tree .antd-Tree .antd-Tree-item--isLeaf .antd-Tree-itemLabel{
294
- padding-left: 0;
295
- }
296
-
297
- /* Hide arrow placeholder for leaf nodes at level >= 3 to align text left without shifting container */
298
- .instance-box-tree .antd-Tree .antd-Tree-item--isLeaf[style*="calc(2 *"] .antd-Tree-itemArrowPlaceholder,
299
- .instance-box-tree .antd-Tree .antd-Tree-item--isLeaf[style*="calc(3 *"] .antd-Tree-itemArrowPlaceholder,
300
- .instance-box-tree .antd-Tree .antd-Tree-item--isLeaf[style*="calc(4 *"] .antd-Tree-itemArrowPlaceholder,
301
- .instance-box-tree .antd-Tree .antd-Tree-item--isLeaf[style*="calc(5 *"] .antd-Tree-itemArrowPlaceholder {
302
- width: 22px;
303
- }
304
-
305
- /* Arrow styling */
306
- .instance-box-tree .antd-Tree-itemArrow{
307
- color: #9ca3af;
308
- transition: transform 0.2s ease;
309
- margin-right: 4px;
310
- }
311
-
312
- .instance-box-tree .antd-Tree-item.is-expanded > .antd-Tree-itemArrow{
313
- transform: rotate(90deg);
314
- }
315
-
316
-
317
62
 
318
63
  .steedos-instance-wrapper input[disabled], input:disabled, input.disabled, input.is-disabled {
319
64
  -webkit-text-fill-color: inherit !important;
@@ -578,27 +323,6 @@ tbody .color-priority-muted *{
578
323
  z-index: 900;
579
324
  }
580
325
 
581
- /* Sidebar wrapper - no scrolling as parent handles it */
582
- .instances-sidebar-wrapper{
583
- /* Removed overflow and height - parent layer handles scrolling */
584
- }
585
-
586
- .instances-sidebar-wrapper::-webkit-scrollbar {
587
- width: 6px;
588
- }
589
-
590
- .instances-sidebar-wrapper::-webkit-scrollbar-track {
591
- background: transparent;
592
- }
593
-
594
- .instances-sidebar-wrapper::-webkit-scrollbar-thumb {
595
- background: #d1d5db;
596
- border-radius: 3px;
597
- }
598
-
599
- .instances-sidebar-wrapper::-webkit-scrollbar-thumb:hover {
600
- background: #9ca3af;
601
- }
602
326
 
603
327
  .steedos-instance-related-view-wrapper{
604
328
  .antd-Page-header{
@@ -778,9 +502,9 @@ tbody .color-priority-muted *{
778
502
  content: none !important;
779
503
  }
780
504
 
781
- .font-normal{
505
+ /* .font-normal{
782
506
  border: none !important;
783
- }
507
+ } */
784
508
  }
785
509
 
786
510
  .antd-Combo-form .antd-Form-row .antd-Form-col{
@@ -804,4 +528,11 @@ tbody .color-priority-muted *{
804
528
 
805
529
  body{
806
530
  overflow: auto !important;
807
- } */
531
+ } */
532
+ .workflow-form-print{
533
+ height: auto !important;
534
+ }
535
+
536
+ .workflow-form-print th{
537
+ background: #ffffff !important
538
+ }