amis-editor-core 5.2.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/lib/cebfe0bc5a1dbde02da1.svg +10 -0
  2. package/lib/compat.d.ts +30 -0
  3. package/lib/component/Breadcrumb.d.ts +33 -0
  4. package/lib/component/ClassNameControl.d.ts +31 -0
  5. package/lib/component/CommonConfigWrapper.d.ts +6 -0
  6. package/lib/component/ContainerWrapper.d.ts +12 -0
  7. package/lib/component/Editor.d.ts +99 -0
  8. package/lib/component/HighlightBox.d.ts +29 -0
  9. package/lib/component/IFrameBridge.d.ts +32 -0
  10. package/lib/component/IFramePreview.d.ts +38 -0
  11. package/lib/component/MiniEditor.d.ts +9 -0
  12. package/lib/component/NodeWrapper.d.ts +20 -0
  13. package/lib/component/Panel/AMisCodeEditor.d.ts +37 -0
  14. package/lib/component/Panel/AvailableRenderersPanel.d.ts +10 -0
  15. package/lib/component/Panel/CodeEditorPanel.d.ts +6 -0
  16. package/lib/component/Panel/ContextMenuPanel.d.ts +8 -0
  17. package/lib/component/Panel/DrawerPanel.d.ts +15 -0
  18. package/lib/component/Panel/DrawerRendererPanel.d.ts +15 -0
  19. package/lib/component/Panel/InsertSubRendererPanel.d.ts +11 -0
  20. package/lib/component/Panel/LeftPanels.d.ts +20 -0
  21. package/lib/component/Panel/Outline.d.ts +18 -0
  22. package/lib/component/Panel/RenderersPanel.d.ts +31 -0
  23. package/lib/component/Panel/RightPanels.d.ts +21 -0
  24. package/lib/component/Panel/TargetNamePanel.d.ts +7 -0
  25. package/lib/component/PopOverForm.d.ts +22 -0
  26. package/lib/component/Preview.d.ts +67 -0
  27. package/lib/component/RegionHLBox.d.ts +20 -0
  28. package/lib/component/RegionWrapper.d.ts +206 -0
  29. package/lib/component/RendererThumb.d.ts +22 -0
  30. package/lib/component/ScaffoldModal.d.ts +24 -0
  31. package/lib/component/SubEditor.d.ts +67 -0
  32. package/lib/component/VRenderer.d.ts +191 -0
  33. package/lib/component/base/BackTop.d.ts +26 -0
  34. package/lib/component/base/ErrorRenderer.d.ts +4 -0
  35. package/lib/component/base/SearchCustomRendererPanel.d.ts +15 -0
  36. package/lib/component/base/SearchPanel.d.ts +83 -0
  37. package/lib/component/base/SearchRendererPanel.d.ts +19 -0
  38. package/lib/component/base/WidthDraggableBtn.d.ts +16 -0
  39. package/lib/component/base/WidthDraggableContainer.d.ts +2 -0
  40. package/lib/component/factory.d.ts +19 -0
  41. package/lib/dnd/default.d.ts +47 -0
  42. package/lib/dnd/index.d.ts +119 -0
  43. package/lib/dnd/interface.d.ts +14 -0
  44. package/lib/dnd/position-h.d.ts +7 -0
  45. package/lib/env.d.ts +5 -0
  46. package/lib/icons/index.d.ts +2 -0
  47. package/lib/index.d.ts +36 -0
  48. package/lib/index.min.js +1 -0
  49. package/lib/manager.d.ts +509 -0
  50. package/lib/mocker.d.ts +1 -0
  51. package/lib/plugin/AvailableRenderers.d.ts +8 -0
  52. package/lib/plugin/BasicToolbar.d.ts +11 -0
  53. package/lib/plugin/Code.d.ts +9 -0
  54. package/lib/plugin/DataDebug.d.ts +19 -0
  55. package/lib/plugin/ErrorRenderer.d.ts +7 -0
  56. package/lib/plugin/Name.d.ts +8 -0
  57. package/lib/plugin/Outline.d.ts +8 -0
  58. package/lib/plugin/Unknown.d.ts +5 -0
  59. package/lib/plugin.d.ts +639 -0
  60. package/lib/store/editor.d.ts +1048 -0
  61. package/lib/store/node.d.ts +281 -0
  62. package/lib/style.css +1 -0
  63. package/lib/tpl.d.ts +5 -0
  64. package/lib/util.d.ts +80 -0
  65. package/package.json +102 -0
  66. package/scss/_backTop.scss +55 -0
  67. package/scss/_bcn.scss +157 -0
  68. package/scss/_classname-picker.scss +57 -0
  69. package/scss/_context-menu-setting.scss +109 -0
  70. package/scss/_data-chain.scss +39 -0
  71. package/scss/_leftPanel.scss +237 -0
  72. package/scss/_mixin.scss +95 -0
  73. package/scss/_outline.scss +206 -0
  74. package/scss/_renderers.scss +536 -0
  75. package/scss/_rightPanel.scss +424 -0
  76. package/scss/_searchRendererPanel.scss +244 -0
  77. package/scss/_selection.scss +6 -0
  78. package/scss/_tableview.scss +53 -0
  79. package/scss/_targetname.scss +30 -0
  80. package/scss/_tooltip.scss +111 -0
  81. package/scss/_variables.scss +41 -0
  82. package/scss/control/_api-control.scss +61 -0
  83. package/scss/control/_badge-control.scss +46 -0
  84. package/scss/control/_dateshortcut-control.scss +108 -0
  85. package/scss/control/_formItem-control.scss +121 -0
  86. package/scss/control/_formula-control.scss +108 -0
  87. package/scss/control/_option-control.scss +170 -0
  88. package/scss/control/_switch-more-control.scss +121 -0
  89. package/scss/control/_validation-control.scss +101 -0
  90. package/scss/editor.scss +1563 -0
  91. package/scss/style-control/_background.scss +204 -0
  92. package/scss/style-control/_border.scss +105 -0
  93. package/scss/style-control/_box-model.scss +100 -0
  94. package/scss/style-control/_box-shadow.scss +12 -0
  95. package/scss/style-control/_font.scss +28 -0
  96. package/scss/style-control/_size.scss +40 -0
  97. package/scss/style-control/_style-common.scss +22 -0
  98. package/static/Code-hover.png +0 -0
  99. package/static/Code.png +0 -0
  100. package/static/Outline-hover.png +0 -0
  101. package/static/Outline.png +0 -0
  102. package/static/Renderers-hover.png +0 -0
  103. package/static/Renderers.png +0 -0
  104. package/static/empty.png +0 -0
  105. package/static/side_hide_left.svg +10 -0
@@ -0,0 +1,536 @@
1
+ .ae-RendererList-tabs {
2
+ position: relative;
3
+ height: 100%;
4
+ padding: 0;
5
+ width: $Editor-aside-width;
6
+ overflow: hidden;
7
+ display: flex;
8
+ flex-direction: column;
9
+ justify-content: flex-start;
10
+
11
+ .ae-RendererList-tabs-header {
12
+ padding: 0 12px;
13
+ }
14
+
15
+ .ae-RendererList-tabs-content {
16
+ position: relative;
17
+ margin-top: 12px;
18
+ flex: 1 1 auto;
19
+ padding: 0 5px;
20
+ // overflow: auto;
21
+ height: 100%;
22
+ // max-height: calc(100% - 50px); // 确保不撑开
23
+ box-sizing: border-box;
24
+ // @include minScrollBar();
25
+
26
+ .ae-RendererList-tabs-panel {
27
+ position: relative;
28
+ padding: 0;
29
+ height: 100%;
30
+ }
31
+ }
32
+ }
33
+
34
+ .ae-RendererList {
35
+ height: 100%;
36
+ padding: 0 0 12px 0;
37
+ // width: $Editor-aside-width;
38
+ display: flex;
39
+ flex-direction: column;
40
+ justify-content: flex-start;
41
+
42
+ .ae-RendererList-tabs-header {
43
+ padding: 0 12px;
44
+ }
45
+
46
+ .ae-RendererList-tabs-content {
47
+ position: relative;
48
+ margin-top: 12px;
49
+ flex: 1 1 auto;
50
+ padding: 0 5px;
51
+ // overflow: auto;
52
+ height: 100%;
53
+ // max-height: calc(100% - 50px); // 确保不撑开
54
+ box-sizing: border-box;
55
+ // @include minScrollBar();
56
+
57
+ .ae-RendererList-tabs-panel {
58
+ position: relative;
59
+ padding: 0;
60
+ height: 100%;
61
+ }
62
+ }
63
+ }
64
+
65
+ .ae-RendererList {
66
+ height: 100%;
67
+ padding: 0 0 12px 0;
68
+ // width: $Editor-aside-width;
69
+ display: flex;
70
+ flex-direction: column;
71
+ justify-content: flex-start;
72
+
73
+ .ae-RendererList-tabs-header {
74
+ padding: 0 12px;
75
+ }
76
+
77
+ .ae-RendererList-tabs-content {
78
+ position: relative;
79
+ margin-top: 12px;
80
+ flex: 1 1 auto;
81
+ padding: 0 5px;
82
+ // overflow: auto;
83
+ height: 100%;
84
+ // max-height: calc(100% - 50px); // 确保不撑开
85
+ box-sizing: border-box;
86
+ // @include minScrollBar();
87
+
88
+ .ae-RendererList-tabs-panel {
89
+ position: relative;
90
+ padding: 0;
91
+ height: 100%;
92
+ }
93
+ }
94
+ }
95
+
96
+ .ae-RendererList {
97
+ height: 100%;
98
+ padding: 0 0 12px 0;
99
+ // width: $Editor-aside-width;
100
+ display: flex;
101
+ flex-direction: column;
102
+
103
+ &.only-base-component {
104
+ width: $Editor-aside-width;
105
+
106
+ .ae-RendererList-groupWrap {
107
+ margin: 0;
108
+ padding: 0 0 12px 0;
109
+ }
110
+ }
111
+
112
+ &.only-base-component {
113
+ width: $Editor-aside-width;
114
+
115
+ .ae-RendererList-groupWrap {
116
+ margin: 0;
117
+ padding: 0;
118
+ }
119
+ }
120
+
121
+ &.only-base-component {
122
+ width: $Editor-aside-width;
123
+
124
+ .ae-RendererList-groupWrap {
125
+ margin: 0;
126
+ padding: 0 0 12px 0;
127
+ }
128
+ }
129
+
130
+ &.only-base-component {
131
+ width: $Editor-aside-width;
132
+
133
+ .ae-RendererList-groupWrap {
134
+ margin: 0;
135
+ padding: 0 0 12px 0;
136
+ }
137
+ }
138
+
139
+ .ae-RendererList-tip {
140
+ padding: 0 12px;
141
+ color: $success;
142
+ }
143
+
144
+ // 用于提示类文本的样式
145
+ .ae-RendererList-group > span,
146
+ .ae-RendererList-groupWrap > span,
147
+ .ae-RendererList-placeholder {
148
+ display: inline-block;
149
+ margin: 12px;
150
+ }
151
+
152
+ &-groupWrap {
153
+ flex: 1 1 auto;
154
+ margin: 0 -5px; // 让右侧滚动条靠最右侧
155
+ padding: 0 0 12px 0;
156
+ background: #fff;
157
+
158
+ .collapse-header {
159
+ padding: 0 12px;
160
+ font-family: PingFangSC-Regular;
161
+ font-size: 12px;
162
+ color: #141a25;
163
+ letter-spacing: 0;
164
+ line-height: 20px;
165
+ font-weight: 400;
166
+ letter-spacing: 0;
167
+ height: 35px;
168
+ line-height: 35px;
169
+ cursor: pointer;
170
+ display: flex;
171
+ justify-content: space-between;
172
+ align-items: center;
173
+
174
+ // 折叠icon
175
+ .expander-icon {
176
+ > svg {
177
+ width: 10px;
178
+ height: 10px;
179
+ color: #333;
180
+ transform: rotate(90deg);
181
+ transition: transform ease-out 0.3s;
182
+ }
183
+
184
+ &.is-folded > svg {
185
+ transform: rotate(270deg);
186
+ }
187
+ }
188
+ }
189
+ }
190
+
191
+ &-group.collapse-content {
192
+ display: flex;
193
+ flex-wrap: wrap;
194
+ height: auto;
195
+ padding: 6px 0 4px 2px;
196
+ box-sizing: border-box;
197
+ // border-bottom: 1px solid $editor-border-color;
198
+ transition: height 0.3s;
199
+
200
+ &:last-child {
201
+ border-bottom: none;
202
+ }
203
+
204
+ &.is-folded {
205
+ height: 0;
206
+ padding: 0;
207
+ overflow: hidden;
208
+
209
+ &:last-child {
210
+ height: 0;
211
+ }
212
+ }
213
+
214
+ .ae-RendererList-item {
215
+ margin: 0 2px 12px 10px; // 兼容右侧可能出现滚动条情况
216
+ padding: 0 8px;
217
+ flex: 0 0 112px;
218
+ cursor: pointer;
219
+
220
+ width: 112px;
221
+ height: 32px;
222
+ border: 1px solid #e8e9eb;
223
+ border-radius: 4px;
224
+
225
+ box-sizing: border-box;
226
+ display: flex;
227
+ justify-content: flex-start;
228
+ align-items: center;
229
+
230
+ .icon-box {
231
+ width: 16px;
232
+ height: 16px;
233
+ box-sizing: border-box;
234
+ display: flex;
235
+ justify-content: center;
236
+ align-items: center;
237
+
238
+ > i {
239
+ font-size: 16px;
240
+ color: #b8babf;
241
+ }
242
+ }
243
+
244
+ .ae-RendererInfo {
245
+ flex: 1 1 auto;
246
+ font-family: PingFangSC-Regular;
247
+ font-size: 12px;
248
+ color: #151b26;
249
+ letter-spacing: 0;
250
+ line-height: 20px;
251
+ font-weight: 400;
252
+
253
+ max-width: 80px;
254
+ padding: 0 8px;
255
+ user-select: none;
256
+ overflow: hidden;
257
+ text-overflow: ellipsis;
258
+ white-space: nowrap;
259
+ }
260
+
261
+ .ae-RendererIcon {
262
+ flex: 0 0 16px;
263
+ color: $default-icon-color;
264
+ justify-content: center;
265
+ align-items: center;
266
+ display: none; // hover 时使用flex
267
+
268
+ > svg {
269
+ width: 16px;
270
+ height: 16px;
271
+ }
272
+
273
+ &:hover {
274
+ color: $editor-active-color;
275
+ }
276
+ }
277
+
278
+ &:hover {
279
+ border-color: $editor-active-color;
280
+
281
+ .ae-RendererInfo {
282
+ max-width: 64px;
283
+ }
284
+ .ae-RendererIcon {
285
+ display: flex !important;
286
+ }
287
+ }
288
+ }
289
+ }
290
+ }
291
+
292
+ // 左侧组件面板/info提示弹窗
293
+ .ae-RendererThumb {
294
+ max-width: 328px;
295
+ min-height: 120px;
296
+ padding: 5px;
297
+ font-size: 12px;
298
+ color: #151b26;
299
+ line-height: 20px;
300
+ background: #fff;
301
+ box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.06), 0 1px 10px 0 rgba(0, 0, 0, 0.05),
302
+ 0 2px 4px -1px rgba(0, 0, 0, 0.04);
303
+
304
+ .ae-Renderer-title {
305
+ font-family: PingFangSC-Medium;
306
+ font-weight: 500;
307
+ }
308
+
309
+ .ae-Renderer-info {
310
+ margin: 4px 0;
311
+ font-family: PingFangSC-Regular;
312
+ letter-spacing: 0;
313
+ font-weight: 400;
314
+ }
315
+
316
+ .ae-Renderer-preview {
317
+ position: relative;
318
+ max-height: 200px;
319
+ overflow: hidden;
320
+ }
321
+ }
322
+
323
+ // 左侧插入和替换组件面板
324
+ .ae-InsertPanel-drawer {
325
+ // 右上角的关闭icon
326
+ svg.icon-close {
327
+ width: 22px;
328
+ height: 22px;
329
+ }
330
+
331
+ .ae-InsertPanel-footer {
332
+ > .action-btn {
333
+ padding: 4px 16px;
334
+ border-radius: 4px;
335
+ display: inline-flex;
336
+ justify-content: center;
337
+ align-items: center;
338
+ }
339
+
340
+ > .action-btn.action-btn-primary {
341
+ color: #fff;
342
+ background-color: #2468f2;
343
+
344
+ &:hover {
345
+ background-color: #5086f5;
346
+ }
347
+ }
348
+
349
+ > .action-btn.is-disabled {
350
+ color: #b4b6ba;
351
+ background-color: #e6e6e8;
352
+ border-color: #e6e6e8;
353
+ }
354
+ }
355
+ }
356
+
357
+ // 新版插入组件面板(抽屉弹出式)
358
+ .ae-InsertRendererPanel-drawer {
359
+ // 右上角的关闭icon
360
+ > svg.icon-close {
361
+ width: 22px;
362
+ height: 22px;
363
+ }
364
+ .ae-drawer-renderers {
365
+ width: 417px; // 确保能一行展示5个组件
366
+ border-radius: 0 !important;
367
+
368
+ .ae-drawer-title {
369
+ padding: 0 12px;
370
+ font-family: PingFangSC-Medium;
371
+ font-size: 18px;
372
+ color: #141a25;
373
+ letter-spacing: 0;
374
+ font-weight: 500;
375
+ height: 35px;
376
+ line-height: 35px;
377
+ cursor: pointer;
378
+ }
379
+
380
+ .ae-RendererList {
381
+ width: 100% !important;
382
+ }
383
+ }
384
+
385
+ .ae-RendererList-tabs {
386
+ width: 417px; // 确保能一行展示5个组件
387
+ }
388
+ }
389
+
390
+ .ae-RenderersPicker-list {
391
+ flex-grow: 1;
392
+ height: 0;
393
+ display: flex;
394
+ flex-direction: row;
395
+ margin-top: 10px;
396
+ margin-bottom: 10px;
397
+
398
+ > ul {
399
+ min-width: 40px;
400
+ margin: 0;
401
+ padding: 0;
402
+ margin-right: 20px;
403
+ user-select: none;
404
+
405
+ > li {
406
+ list-style: none;
407
+ display: block;
408
+ text-align: center;
409
+ white-space: nowrap;
410
+
411
+ &:not(:last-child) {
412
+ margin-bottom: 10px;
413
+ }
414
+
415
+ > a {
416
+ color: #666;
417
+ font-size: 14px;
418
+ cursor: pointer;
419
+ padding: 2px 10px;
420
+ border-radius: 5px;
421
+ }
422
+
423
+ &.is-active > a,
424
+ > a:hover {
425
+ text-decoration: none;
426
+ color: #333;
427
+ background: rgba(66, 133, 244, 0.1);
428
+ }
429
+ }
430
+ }
431
+ }
432
+
433
+ .ae-RenderersPicker-content {
434
+ flex-grow: 1;
435
+ width: 0;
436
+ overflow: auto;
437
+ @include minScrollBar();
438
+
439
+ > ul {
440
+ list-style: none;
441
+ margin: 0;
442
+ padding: 0;
443
+
444
+ > li {
445
+ border-radius: 4px;
446
+ margin: 0;
447
+ padding: 0;
448
+ display: flex;
449
+ flex-wrap: wrap;
450
+ flex-direction: row;
451
+ align-items: center;
452
+ border: 1px solid #e6e7e8;
453
+ color: #666;
454
+ font-size: 12px;
455
+ cursor: pointer;
456
+
457
+ &:not(:last-child) {
458
+ margin-bottom: 10px;
459
+ }
460
+
461
+ &:hover,
462
+ &.is-active {
463
+ background: rgba($Editor-hlbox--onActive-bg, 0.05);
464
+ }
465
+
466
+ &.is-active {
467
+ border: 1px solid $Editor-theme;
468
+ }
469
+ }
470
+ }
471
+ }
472
+ .ae-RenderersPicker-info {
473
+ flex-grow: 1;
474
+ width: 0;
475
+ padding: 10px;
476
+ align-self: flex-start;
477
+ user-select: none;
478
+
479
+ > h4 {
480
+ font-size: 14px;
481
+ color: #333;
482
+ padding: 0;
483
+ margin: 0 0 10px;
484
+ }
485
+ }
486
+
487
+ .ae-RendereresPicker-form {
488
+ height: 100%;
489
+ }
490
+
491
+ .ae-RenderersPicker {
492
+ height: 100%;
493
+ display: flex;
494
+ flex-direction: column;
495
+ }
496
+
497
+ .ae-RegionFilter {
498
+ margin: 10px 15px;
499
+ font-size: 12px;
500
+ color: #666;
501
+
502
+ > div {
503
+ display: inline-block;
504
+ cursor: pointer;
505
+ padding: 2px 10px;
506
+ border-radius: 5px;
507
+
508
+ &:hover,
509
+ &.is-active {
510
+ color: #333;
511
+ background: rgba(66, 133, 244, 0.1);
512
+ }
513
+ }
514
+ }
515
+
516
+ .ae-InsertPanel {
517
+ display: flex;
518
+ flex-direction: column;
519
+ padding: 15px;
520
+ width: 100%;
521
+ height: 100%;
522
+
523
+ &-title {
524
+ color: #333;
525
+ margin-bottom: 10px;
526
+ }
527
+
528
+ &-footer {
529
+ text-align: right;
530
+
531
+ > button + button,
532
+ > div + button {
533
+ margin-left: 5px;
534
+ }
535
+ }
536
+ }