mce 0.12.5 → 0.13.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/README.md +6 -2
- package/dist/components/Floatbar.vue.d.ts +16 -1
- package/dist/components/Layer.vue.d.ts +41 -0
- package/dist/components/Selector.vue.d.ts +4 -7
- package/dist/components/shared/Btn.vue.d.ts +13 -0
- package/dist/components/shared/Dialog.vue.d.ts +9 -0
- package/dist/components/shared/FloatPanel.vue.d.ts +26 -0
- package/dist/components/shared/Menu.vue.d.ts +9 -0
- package/dist/components/shared/Overlay.vue.d.ts +9 -0
- package/dist/components/shared/Tooltip.vue.d.ts +10 -1
- package/dist/components/shared/Transformable.vue.d.ts +2 -5
- package/dist/composables/index.d.ts +1 -0
- package/dist/composables/layer.d.ts +33 -0
- package/dist/composables/overlay.d.ts +11 -0
- package/dist/index.css +179 -100
- package/dist/index.js +966 -432
- package/dist/locale/en.d.ts +6 -0
- package/dist/locale/zh-Hans.d.ts +84 -0
- package/dist/mixins/0.config/base.d.ts +5 -1
- package/dist/mixins/0.context.d.ts +2 -0
- package/dist/mixins/0.element.d.ts +4 -2
- package/dist/mixins/0.helper.d.ts +7 -4
- package/dist/mixins/1.frame.d.ts +2 -2
- package/dist/mixins/1.screen.d.ts +4 -3
- package/dist/plugins/layerOrder.d.ts +5 -5
- package/dist/plugins/menu.d.ts +2 -1
- package/dist/plugins/panels.d.ts +12 -0
- package/dist/typed-plugins.d.ts +1 -0
- package/package.json +2 -2
package/dist/index.css
CHANGED
|
@@ -205,6 +205,156 @@
|
|
|
205
205
|
border-style: solid;
|
|
206
206
|
border-width: 2px;
|
|
207
207
|
color: rgba(var(--mce-theme-primary), 1);
|
|
208
|
+
}.mce-btn {
|
|
209
|
+
padding: 4px;
|
|
210
|
+
border-radius: 4px;
|
|
211
|
+
height: 24px;
|
|
212
|
+
width: 24px;
|
|
213
|
+
font-size: 12px;
|
|
214
|
+
display: flex;
|
|
215
|
+
align-items: center;
|
|
216
|
+
justify-content: center;
|
|
217
|
+
}.mce-layer {
|
|
218
|
+
position: relative;
|
|
219
|
+
flex: none;
|
|
220
|
+
display: flex;
|
|
221
|
+
align-items: center;
|
|
222
|
+
height: 32px;
|
|
223
|
+
font-size: 12px;
|
|
224
|
+
padding-left: var(--indent-padding, 0);
|
|
225
|
+
width: 100%;
|
|
226
|
+
min-width: max-content;
|
|
227
|
+
border-radius: 4px;
|
|
228
|
+
}
|
|
229
|
+
.mce-layer:before {
|
|
230
|
+
content: "";
|
|
231
|
+
position: absolute;
|
|
232
|
+
left: 0;
|
|
233
|
+
right: 0;
|
|
234
|
+
top: 4px;
|
|
235
|
+
bottom: 4px;
|
|
236
|
+
background-color: var(--underlay-color, transparent);
|
|
237
|
+
pointer-events: none;
|
|
238
|
+
border-radius: inherit;
|
|
239
|
+
}
|
|
240
|
+
.mce-layer:after {
|
|
241
|
+
content: "";
|
|
242
|
+
position: absolute;
|
|
243
|
+
left: 0;
|
|
244
|
+
right: 0;
|
|
245
|
+
top: 4px;
|
|
246
|
+
bottom: 4px;
|
|
247
|
+
background-color: var(--overlay-color, transparent);
|
|
248
|
+
pointer-events: none;
|
|
249
|
+
border-radius: inherit;
|
|
250
|
+
}
|
|
251
|
+
.mce-layer--root {
|
|
252
|
+
margin-bottom: 4px;
|
|
253
|
+
font-weight: bold;
|
|
254
|
+
}
|
|
255
|
+
.mce-layer--root .mce-layer__thumbnail {
|
|
256
|
+
display: none;
|
|
257
|
+
}
|
|
258
|
+
.mce-layer--hover {
|
|
259
|
+
--overlay-color: rgba(var(--mce-theme-on-background), var(--mce-hover-opacity));
|
|
260
|
+
}
|
|
261
|
+
.mce-layer--active:before {
|
|
262
|
+
top: 0;
|
|
263
|
+
bottom: 0;
|
|
264
|
+
border-radius: 0;
|
|
265
|
+
}
|
|
266
|
+
.mce-layer--first:before {
|
|
267
|
+
border-top-left-radius: 4px;
|
|
268
|
+
border-top-right-radius: 4px;
|
|
269
|
+
top: 4px;
|
|
270
|
+
}
|
|
271
|
+
.mce-layer--last:before {
|
|
272
|
+
border-bottom-left-radius: 4px;
|
|
273
|
+
border-bottom-right-radius: 4px;
|
|
274
|
+
bottom: 4px;
|
|
275
|
+
}
|
|
276
|
+
.mce-layer--active {
|
|
277
|
+
--underlay-color: rgba(var(--mce-theme-primary), calc(var(--mce-activated-opacity) * 3));
|
|
278
|
+
}
|
|
279
|
+
.mce-layer--active:hover {
|
|
280
|
+
--overlay-color: rgba(var(--mce-theme-primary), var(--mce-hover-opacity));
|
|
281
|
+
}
|
|
282
|
+
.mce-layer--open .mce-layer__expand .mce-icon {
|
|
283
|
+
transform: rotate(90deg);
|
|
284
|
+
}
|
|
285
|
+
.mce-layer__expand {
|
|
286
|
+
display: flex;
|
|
287
|
+
align-items: center;
|
|
288
|
+
width: 16px;
|
|
289
|
+
height: 100%;
|
|
290
|
+
flex: none;
|
|
291
|
+
}
|
|
292
|
+
.mce-layer__content {
|
|
293
|
+
flex: 1;
|
|
294
|
+
display: flex;
|
|
295
|
+
align-items: center;
|
|
296
|
+
height: 100%;
|
|
297
|
+
}
|
|
298
|
+
.mce-layer__thumbnail {
|
|
299
|
+
display: flex;
|
|
300
|
+
align-items: center;
|
|
301
|
+
width: 12px;
|
|
302
|
+
height: 100%;
|
|
303
|
+
font-size: 12px;
|
|
304
|
+
overflow: hidden;
|
|
305
|
+
margin-right: 4px;
|
|
306
|
+
}
|
|
307
|
+
.mce-layer__name {
|
|
308
|
+
position: relative;
|
|
309
|
+
flex: 1;
|
|
310
|
+
}
|
|
311
|
+
.mce-layer__input {
|
|
312
|
+
position: absolute;
|
|
313
|
+
left: 0;
|
|
314
|
+
top: 0;
|
|
315
|
+
padding: 0;
|
|
316
|
+
width: 100%;
|
|
317
|
+
height: 100%;
|
|
318
|
+
border: none;
|
|
319
|
+
outline: 1px solid rgb(var(--mce-theme-primary));
|
|
320
|
+
font-size: inherit;
|
|
321
|
+
font-weight: inherit;
|
|
322
|
+
border-radius: 2px;
|
|
323
|
+
}
|
|
324
|
+
.mce-layer__action {
|
|
325
|
+
flex: none;
|
|
326
|
+
display: flex;
|
|
327
|
+
align-items: center;
|
|
328
|
+
}
|
|
329
|
+
.mce-btn--hide {
|
|
330
|
+
opacity: 0;
|
|
331
|
+
}
|
|
332
|
+
.mce-btn:hover {
|
|
333
|
+
background-color: rgb(var(--mce-theme-background));
|
|
334
|
+
}
|
|
335
|
+
.mce-btn + .mce-btn {
|
|
336
|
+
margin-left: -4px;
|
|
337
|
+
}.mce-layers {
|
|
338
|
+
position: relative;
|
|
339
|
+
width: 100%;
|
|
340
|
+
height: 100%;
|
|
341
|
+
min-width: auto;
|
|
342
|
+
overflow: auto;
|
|
343
|
+
background-color: rgb(var(--mce-theme-surface));
|
|
344
|
+
}
|
|
345
|
+
.mce-layers__wrapper {
|
|
346
|
+
padding: 8px;
|
|
347
|
+
width: max-content;
|
|
348
|
+
min-width: 100%;
|
|
349
|
+
}
|
|
350
|
+
.mce-layers .mce-layer__expand {
|
|
351
|
+
opacity: 0;
|
|
352
|
+
}
|
|
353
|
+
.mce-layers .mce-layer--root:hover .mce-layer__expand {
|
|
354
|
+
opacity: 1;
|
|
355
|
+
}
|
|
356
|
+
.mce-layers:hover .mce-layer:not(.mce-layer--root) .mce-layer__expand {
|
|
357
|
+
opacity: 1;
|
|
208
358
|
}.mce-tooltip {
|
|
209
359
|
background: rgb(var(--mce-theme-surface-variant));
|
|
210
360
|
color: rgb(var(--mce-theme-on-surface-variant));
|
|
@@ -303,7 +453,6 @@
|
|
|
303
453
|
}.mce-transformable {
|
|
304
454
|
left: 0;
|
|
305
455
|
top: 0;
|
|
306
|
-
color: rgb(var(--mce-theme-primary));
|
|
307
456
|
}
|
|
308
457
|
.mce-transformable__svg {
|
|
309
458
|
position: absolute;
|
|
@@ -313,6 +462,7 @@
|
|
|
313
462
|
height: 100%;
|
|
314
463
|
overflow: visible;
|
|
315
464
|
pointer-events: none;
|
|
465
|
+
color: rgb(var(--mce-theme-primary));
|
|
316
466
|
}
|
|
317
467
|
.mce-transformable__box {
|
|
318
468
|
stroke: currentColor;
|
|
@@ -363,6 +513,34 @@
|
|
|
363
513
|
border-width: 1px;
|
|
364
514
|
border-style: solid;
|
|
365
515
|
color: rgba(var(--mce-theme-primary), 1);
|
|
516
|
+
}.mce-float-panel {
|
|
517
|
+
position: absolute;
|
|
518
|
+
pointer-events: auto !important;
|
|
519
|
+
}
|
|
520
|
+
.mce-float-panel__card {
|
|
521
|
+
display: flex;
|
|
522
|
+
flex-direction: column;
|
|
523
|
+
width: 100%;
|
|
524
|
+
height: 100%;
|
|
525
|
+
border-radius: 12px;
|
|
526
|
+
background-color: rgb(var(--mce-theme-surface));
|
|
527
|
+
box-shadow: var(--mce-shadow);
|
|
528
|
+
overflow: hidden;
|
|
529
|
+
}
|
|
530
|
+
.mce-float-panel__title {
|
|
531
|
+
display: flex;
|
|
532
|
+
justify-content: space-between;
|
|
533
|
+
align-items: center;
|
|
534
|
+
padding: 8px;
|
|
535
|
+
font-size: 12px;
|
|
536
|
+
font-weight: bold;
|
|
537
|
+
border-bottom: 1px solid rgba(var(--mce-border-color), var(--mce-border-opacity));
|
|
538
|
+
}
|
|
539
|
+
.mce-float-panel__content {
|
|
540
|
+
position: relative;
|
|
541
|
+
width: 100%;
|
|
542
|
+
height: 100%;
|
|
543
|
+
overflow-y: auto;
|
|
366
544
|
}.mce-layout {
|
|
367
545
|
--mce-scrollbar-offset: 0px;
|
|
368
546
|
display: flex;
|
|
@@ -825,105 +1003,6 @@
|
|
|
825
1003
|
width: 100%;
|
|
826
1004
|
height: 100%;
|
|
827
1005
|
display: block;
|
|
828
|
-
}.mce-layer-item {
|
|
829
|
-
flex: none;
|
|
830
|
-
display: flex;
|
|
831
|
-
align-items: center;
|
|
832
|
-
height: 24px;
|
|
833
|
-
font-size: 12px;
|
|
834
|
-
border-radius: 4px;
|
|
835
|
-
padding-left: var(--indent-padding, 0);
|
|
836
|
-
width: 100%;
|
|
837
|
-
min-width: max-content;
|
|
838
|
-
}
|
|
839
|
-
.mce-layer-item:hover {
|
|
840
|
-
background-color: rgba(var(--mce-theme-on-background), var(--mce-hover-opacity));
|
|
841
|
-
}
|
|
842
|
-
.mce-layer-item__expand {
|
|
843
|
-
display: flex;
|
|
844
|
-
align-items: center;
|
|
845
|
-
width: 16px;
|
|
846
|
-
height: 100%;
|
|
847
|
-
opacity: 0;
|
|
848
|
-
flex: none;
|
|
849
|
-
}
|
|
850
|
-
.mce-layer-item__content {
|
|
851
|
-
flex: 1;
|
|
852
|
-
display: flex;
|
|
853
|
-
align-items: center;
|
|
854
|
-
height: 100%;
|
|
855
|
-
}
|
|
856
|
-
.mce-layer-item__thumbnail {
|
|
857
|
-
display: flex;
|
|
858
|
-
align-items: center;
|
|
859
|
-
width: 12px;
|
|
860
|
-
height: 100%;
|
|
861
|
-
font-size: 12px;
|
|
862
|
-
overflow: hidden;
|
|
863
|
-
}
|
|
864
|
-
.mce-layer-item__name {
|
|
865
|
-
padding: 0 8px;
|
|
866
|
-
}
|
|
867
|
-
.mce-layer-item__name-input {
|
|
868
|
-
border: none;
|
|
869
|
-
padding: 0;
|
|
870
|
-
outline: none;
|
|
871
|
-
font-size: inherit;
|
|
872
|
-
font-weight: inherit;
|
|
873
|
-
}
|
|
874
|
-
.mce-layer {
|
|
875
|
-
flex: none;
|
|
876
|
-
display: flex;
|
|
877
|
-
flex-direction: column;
|
|
878
|
-
gap: 8px;
|
|
879
|
-
border-radius: 4px;
|
|
880
|
-
width: 100%;
|
|
881
|
-
min-width: max-content;
|
|
882
|
-
}
|
|
883
|
-
.mce-layer--active {
|
|
884
|
-
background-color: rgba(var(--mce-theme-primary), var(--mce-activated-opacity));
|
|
885
|
-
}
|
|
886
|
-
.mce-layer--opened .mce-layer-item__expand .mce-icon {
|
|
887
|
-
transform: rotate(90deg);
|
|
888
|
-
}
|
|
889
|
-
.mce-layers {
|
|
890
|
-
position: relative;
|
|
891
|
-
display: flex;
|
|
892
|
-
flex-direction: column;
|
|
893
|
-
gap: 8px;
|
|
894
|
-
width: 100%;
|
|
895
|
-
height: 100%;
|
|
896
|
-
min-width: auto;
|
|
897
|
-
padding: 8px;
|
|
898
|
-
overflow: auto;
|
|
899
|
-
background-color: rgb(var(--mce-theme-surface));
|
|
900
|
-
}
|
|
901
|
-
.mce-layers:hover .mce-layer-item__expand {
|
|
902
|
-
opacity: 1;
|
|
903
|
-
}
|
|
904
|
-
.mce-layers__action {
|
|
905
|
-
position: absolute;
|
|
906
|
-
padding-right: 8px;
|
|
907
|
-
height: 24px;
|
|
908
|
-
display: flex;
|
|
909
|
-
align-items: center;
|
|
910
|
-
background-color: rgb(var(--mce-theme-surface));
|
|
911
|
-
}
|
|
912
|
-
.mce-btn {
|
|
913
|
-
padding: 4px;
|
|
914
|
-
border-radius: 4px;
|
|
915
|
-
height: 24px;
|
|
916
|
-
width: 24px;
|
|
917
|
-
font-size: 12px;
|
|
918
|
-
display: flex;
|
|
919
|
-
align-items: center;
|
|
920
|
-
justify-content: center;
|
|
921
|
-
}
|
|
922
|
-
.mce-btn:hover {
|
|
923
|
-
background-color: rgb(var(--mce-theme-background));
|
|
924
|
-
}
|
|
925
|
-
.mce-btn + .mce-btn {
|
|
926
|
-
margin-left: -4px;
|
|
927
1006
|
}.mce-dialog > * {
|
|
928
1007
|
box-shadow: var(--mce-shadow);
|
|
929
1008
|
}
|