android-midscene-automation 0.1.6 → 0.1.9

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/src/style.css CHANGED
@@ -274,6 +274,25 @@ select {
274
274
  font-weight: 700;
275
275
  }
276
276
 
277
+ .appium-section-title {
278
+ display: flex;
279
+ align-items: center;
280
+ justify-content: space-between;
281
+ gap: 12px;
282
+ }
283
+
284
+ .appium-section-title h3 {
285
+ margin-bottom: 12px;
286
+ }
287
+
288
+ .appium-section-title__actions {
289
+ display: inline-flex;
290
+ align-items: center;
291
+ gap: 8px;
292
+ flex-shrink: 0;
293
+ margin-bottom: 12px;
294
+ }
295
+
277
296
  .appium-tree {
278
297
  height: 100%;
279
298
  min-height: 0;
@@ -289,6 +308,27 @@ select {
289
308
  white-space: nowrap;
290
309
  }
291
310
 
311
+ .appium-tree-node {
312
+ display: inline-flex;
313
+ align-items: center;
314
+ gap: 6px;
315
+ }
316
+
317
+ .appium-tree-node__badge {
318
+ flex: 0 0 auto;
319
+ padding: 0 5px;
320
+ border-radius: 999px;
321
+ background: #f0f9eb;
322
+ color: #529b2e;
323
+ font-size: 11px;
324
+ line-height: 18px;
325
+ }
326
+
327
+ .appium-tree-node__badge--duplicate {
328
+ background: #fdf6ec;
329
+ color: #b88230;
330
+ }
331
+
292
332
  .appium-tree::-webkit-scrollbar {
293
333
  width: 8px;
294
334
  height: 8px;
@@ -397,17 +437,6 @@ select {
397
437
  align-items: center;
398
438
  }
399
439
 
400
- .appium-action-trigger {
401
- width: 100%;
402
- margin-top: 12px;
403
- }
404
-
405
- .appium-action-trigger__icon {
406
- width: 14px;
407
- height: 14px;
408
- margin-right: 6px;
409
- }
410
-
411
440
  .appium-action-dropdown {
412
441
  max-height: min(320px, calc(100vh - 96px));
413
442
  overflow: hidden;
@@ -424,6 +453,50 @@ select {
424
453
  line-height: 18px;
425
454
  }
426
455
 
456
+ .appium-activity-lock-alert {
457
+ align-items: flex-start;
458
+ }
459
+
460
+ .appium-activity-lock-alert .el-alert__content {
461
+ min-width: 0;
462
+ }
463
+
464
+ .appium-activity-lock-alert__details {
465
+ display: grid;
466
+ gap: 5px;
467
+ min-width: 0;
468
+ margin-top: 6px;
469
+ color: #b88230;
470
+ font-size: 12px;
471
+ line-height: 1.5;
472
+ }
473
+
474
+ .appium-activity-lock-alert__details > div {
475
+ display: grid;
476
+ grid-template-columns: 72px minmax(0, 1fr);
477
+ gap: 6px;
478
+ min-width: 0;
479
+ }
480
+
481
+ .appium-activity-lock-alert__details strong {
482
+ font-weight: 600;
483
+ }
484
+
485
+ .appium-activity-lock-alert__details code {
486
+ min-width: 0;
487
+ color: inherit;
488
+ font-family: inherit;
489
+ overflow-wrap: anywhere;
490
+ word-break: break-word;
491
+ white-space: normal;
492
+ }
493
+
494
+ .appium-activity-lock-alert__details p {
495
+ min-width: 0;
496
+ margin: 0;
497
+ overflow-wrap: anywhere;
498
+ }
499
+
427
500
  .appium-action-dropdown__item {
428
501
  display: flex;
429
502
  align-items: center;
@@ -573,6 +646,576 @@ select {
573
646
  opacity: 0.45;
574
647
  }
575
648
 
649
+ .appium-flow-toolbar {
650
+ display: flex;
651
+ justify-content: flex-end;
652
+ margin-bottom: 6px;
653
+ }
654
+
655
+ .appium-flow-canvas {
656
+ position: relative;
657
+ height: 460px;
658
+ min-width: 0;
659
+ overflow: hidden;
660
+ border: 1px solid #e4e7ed;
661
+ border-radius: 8px;
662
+ background:
663
+ radial-gradient(circle at 1px 1px, #e7edf6 1px, transparent 0) 0 0 / 18px 18px,
664
+ #fff;
665
+ cursor: grab;
666
+ touch-action: none;
667
+ user-select: none;
668
+ }
669
+
670
+ .appium-flow-canvas--dragging {
671
+ cursor: grabbing;
672
+ }
673
+
674
+ .appium-flow-canvas .appium-flow-node {
675
+ cursor: pointer;
676
+ }
677
+
678
+ .appium-flow-content {
679
+ display: grid;
680
+ gap: 8px;
681
+ align-content: start;
682
+ width: max(760px, 100%);
683
+ min-width: 0;
684
+ padding: 10px 12px 14px;
685
+ transform-origin: 0 0;
686
+ will-change: transform;
687
+ }
688
+
689
+ .appium-flow-dialog .el-dialog__body {
690
+ padding-top: 8px;
691
+ }
692
+
693
+ .appium-flow-dialog-canvas {
694
+ height: 72vh;
695
+ overflow: auto;
696
+ padding: 12px;
697
+ border: 1px solid #e4e7ed;
698
+ border-radius: 8px;
699
+ background:
700
+ radial-gradient(circle at 1px 1px, #e7edf6 1px, transparent 0) 0 0 / 18px 18px,
701
+ #fff;
702
+ }
703
+
704
+ .appium-flow-content--overview {
705
+ width: min(980px, 100%);
706
+ margin: 0 auto;
707
+ transform: none;
708
+ user-select: text;
709
+ }
710
+
711
+ .appium-flow-content .el-empty {
712
+ pointer-events: none;
713
+ }
714
+
715
+ .appium-flow-item {
716
+ position: relative;
717
+ display: grid;
718
+ gap: 6px;
719
+ justify-items: stretch;
720
+ min-width: 0;
721
+ }
722
+
723
+ .appium-flow-start {
724
+ position: relative;
725
+ z-index: 1;
726
+ display: grid;
727
+ justify-items: start;
728
+ gap: 6px;
729
+ }
730
+
731
+ .appium-flow-boundary {
732
+ position: relative;
733
+ z-index: 1;
734
+ display: flex;
735
+ align-items: center;
736
+ gap: 8px;
737
+ width: min(440px, 100%);
738
+ }
739
+
740
+ .appium-flow-boundary__label {
741
+ min-width: 62px;
742
+ color: #606266;
743
+ font-size: 12px;
744
+ font-weight: 700;
745
+ }
746
+
747
+ .appium-flow-boundary--pre {
748
+ order: 0;
749
+ }
750
+
751
+ .appium-flow-item--pre {
752
+ order: 1;
753
+ }
754
+
755
+ .appium-flow-start {
756
+ order: 2;
757
+ }
758
+
759
+ .appium-flow-item--main {
760
+ order: 3;
761
+ }
762
+
763
+ .appium-flow-end {
764
+ position: relative;
765
+ z-index: 1;
766
+ order: 4;
767
+ display: grid;
768
+ justify-items: start;
769
+ }
770
+
771
+ .appium-flow-end__node {
772
+ display: grid;
773
+ place-items: center;
774
+ box-sizing: border-box;
775
+ width: 38px;
776
+ height: 30px;
777
+ padding: 0 6px;
778
+ border: 1px solid #909399;
779
+ border-radius: 8px;
780
+ background: #f4f4f5;
781
+ color: #606266;
782
+ font-size: 12px;
783
+ font-weight: 700;
784
+ }
785
+
786
+ .appium-flow-boundary--post {
787
+ order: 5;
788
+ }
789
+
790
+ .appium-flow-item--post {
791
+ order: 6;
792
+ }
793
+
794
+ .appium-flow-start::after {
795
+ content: "";
796
+ position: absolute;
797
+ z-index: 0;
798
+ top: 30px;
799
+ bottom: -8px;
800
+ left: 19px;
801
+ width: 2px;
802
+ background: #dbe5f1;
803
+ }
804
+
805
+ .appium-flow-start__node {
806
+ position: relative;
807
+ z-index: 1;
808
+ display: grid;
809
+ place-items: center;
810
+ box-sizing: border-box;
811
+ width: 38px;
812
+ height: 30px;
813
+ padding: 0 6px;
814
+ border: 1px solid #409eff;
815
+ border-radius: 8px;
816
+ background: #ecf5ff;
817
+ color: #337ecc;
818
+ font-size: 12px;
819
+ font-weight: 700;
820
+ }
821
+
822
+ .appium-flow-start > .el-dropdown {
823
+ position: relative;
824
+ z-index: 1;
825
+ }
826
+
827
+ .appium-flow-start--overview {
828
+ padding-bottom: 2px;
829
+ }
830
+
831
+ .appium-flow-start--overview::after {
832
+ bottom: -10px;
833
+ }
834
+
835
+ .appium-flow-item:not(:last-child)::after {
836
+ content: "";
837
+ position: absolute;
838
+ left: 19px;
839
+ top: 40px;
840
+ bottom: -8px;
841
+ width: 2px;
842
+ background: #dbe5f1;
843
+ }
844
+
845
+ .appium-flow-item--condition:not(:last-child)::after {
846
+ display: none;
847
+ }
848
+
849
+ .appium-flow-node {
850
+ position: relative;
851
+ z-index: 1;
852
+ display: grid;
853
+ grid-template-columns: minmax(0, 1fr) auto;
854
+ gap: 6px;
855
+ align-items: center;
856
+ width: 100%;
857
+ min-width: 0;
858
+ padding: 6px 8px;
859
+ border: 1px solid #d8e0ea;
860
+ border-radius: 8px;
861
+ background: #fff;
862
+ color: #303133;
863
+ text-align: left;
864
+ cursor: pointer;
865
+ }
866
+
867
+ .appium-flow-node__toggle {
868
+ display: grid;
869
+ grid-template-columns: 24px minmax(0, 1fr);
870
+ gap: 6px;
871
+ align-items: center;
872
+ min-width: 0;
873
+ padding: 0;
874
+ border: 0;
875
+ background: transparent;
876
+ color: inherit;
877
+ font: inherit;
878
+ text-align: left;
879
+ cursor: pointer;
880
+ }
881
+
882
+ .appium-flow-item:not(.appium-flow-item--condition) > .appium-flow-node,
883
+ .appium-flow-item:not(.appium-flow-item--condition) > .appium-flow-editor {
884
+ box-sizing: border-box;
885
+ width: min(440px, 100%);
886
+ }
887
+
888
+ .appium-flow-node--condition {
889
+ border-color: #e6a23c;
890
+ background: #fffaf0;
891
+ }
892
+
893
+ .appium-flow-node--assertion {
894
+ border-color: #67c23a;
895
+ background: #f6fff3;
896
+ }
897
+
898
+ .appium-flow-node--expanded {
899
+ box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.12);
900
+ border-color: #409eff;
901
+ }
902
+
903
+ .appium-flow-node__index {
904
+ display: grid;
905
+ place-items: center;
906
+ width: 22px;
907
+ height: 22px;
908
+ border-radius: 50%;
909
+ background: #eef2ff;
910
+ color: #475569;
911
+ font-size: 11px;
912
+ font-weight: 700;
913
+ }
914
+
915
+ .appium-flow-node__body {
916
+ display: grid;
917
+ gap: 2px;
918
+ min-width: 0;
919
+ }
920
+
921
+ .appium-flow-node__title {
922
+ min-width: 0;
923
+ font-size: 12px;
924
+ font-weight: 700;
925
+ line-height: 1.35;
926
+ overflow-wrap: anywhere;
927
+ }
928
+
929
+ .appium-flow-node__meta {
930
+ min-width: 0;
931
+ color: #64748b;
932
+ font-size: 11px;
933
+ line-height: 1.35;
934
+ overflow-wrap: anywhere;
935
+ }
936
+
937
+ .appium-flow-node__actions {
938
+ display: inline-flex;
939
+ gap: 2px;
940
+ }
941
+
942
+ .appium-flow-node__actions .el-button {
943
+ width: 22px;
944
+ height: 22px;
945
+ margin: 0;
946
+ padding: 0;
947
+ }
948
+
949
+ .appium-flow-branches {
950
+ position: relative;
951
+ z-index: 1;
952
+ display: grid;
953
+ grid-template-columns: repeat(2, minmax(300px, 1fr));
954
+ gap: 56px;
955
+ margin-left: 24px;
956
+ margin-right: 24px;
957
+ padding-top: 30px;
958
+ }
959
+
960
+ .appium-flow-branch-lines {
961
+ position: absolute;
962
+ top: -6px;
963
+ left: 0;
964
+ width: 100%;
965
+ height: 38px;
966
+ overflow: visible;
967
+ pointer-events: none;
968
+ }
969
+
970
+ .appium-flow-branch-lines path {
971
+ fill: none;
972
+ stroke: #e6a23c;
973
+ stroke-width: 2;
974
+ stroke-linecap: round;
975
+ stroke-linejoin: round;
976
+ vector-effect: non-scaling-stroke;
977
+ }
978
+
979
+ .appium-flow-branch {
980
+ position: relative;
981
+ display: grid;
982
+ gap: 10px;
983
+ align-content: start;
984
+ min-width: 0;
985
+ padding: 0;
986
+ color: #64748b;
987
+ font-size: 11px;
988
+ }
989
+
990
+ .appium-flow-branch::before {
991
+ content: "";
992
+ position: absolute;
993
+ z-index: 0;
994
+ top: 18px;
995
+ bottom: 12px;
996
+ left: 50%;
997
+ width: 2px;
998
+ transform: translateX(-50%);
999
+ background: #d8e0ea;
1000
+ }
1001
+
1002
+ .appium-flow-branch__label {
1003
+ display: inline-flex;
1004
+ align-items: center;
1005
+ justify-content: center;
1006
+ width: fit-content;
1007
+ justify-self: center;
1008
+ min-width: 24px;
1009
+ height: 18px;
1010
+ padding: 0 6px;
1011
+ border-radius: 999px;
1012
+ color: #fff;
1013
+ font-size: 11px;
1014
+ font-weight: 700;
1015
+ line-height: 18px;
1016
+ position: relative;
1017
+ z-index: 1;
1018
+ }
1019
+
1020
+ .appium-flow-branch__target {
1021
+ position: relative;
1022
+ z-index: 1;
1023
+ justify-self: center;
1024
+ min-height: 24px;
1025
+ padding: 4px 10px;
1026
+ border: 1px solid #d8e0ea;
1027
+ border-radius: 999px;
1028
+ background: #fff;
1029
+ color: #303133;
1030
+ font-weight: 600;
1031
+ line-height: 1.4;
1032
+ overflow-wrap: anywhere;
1033
+ }
1034
+
1035
+ .appium-flow-branch-steps {
1036
+ position: relative;
1037
+ z-index: 1;
1038
+ display: grid;
1039
+ gap: 10px;
1040
+ justify-self: center;
1041
+ width: 100%;
1042
+ min-width: 0;
1043
+ }
1044
+
1045
+ .appium-flow-branch-step {
1046
+ position: relative;
1047
+ z-index: 1;
1048
+ display: grid;
1049
+ grid-template-columns: 20px minmax(0, 1fr) auto;
1050
+ gap: 5px;
1051
+ align-items: center;
1052
+ min-width: 0;
1053
+ padding: 5px 6px;
1054
+ border: 1px solid #d8e0ea;
1055
+ border-radius: 8px;
1056
+ background: #fff;
1057
+ }
1058
+
1059
+ .appium-flow-branch-step__delete.el-button {
1060
+ width: 22px;
1061
+ height: 22px;
1062
+ margin: 0;
1063
+ padding: 0;
1064
+ }
1065
+
1066
+ .appium-flow-branch-step__index {
1067
+ display: grid;
1068
+ place-items: center;
1069
+ width: 19px;
1070
+ height: 19px;
1071
+ border-radius: 50%;
1072
+ background: #eef2ff;
1073
+ color: #475569;
1074
+ font-size: 10px;
1075
+ font-weight: 700;
1076
+ }
1077
+
1078
+ .appium-flow-branch-step__body {
1079
+ display: grid;
1080
+ gap: 1px;
1081
+ min-width: 0;
1082
+ }
1083
+
1084
+ .appium-flow-branch-step__title {
1085
+ min-width: 0;
1086
+ color: #303133;
1087
+ font-size: 11px;
1088
+ font-weight: 700;
1089
+ line-height: 1.35;
1090
+ overflow-wrap: anywhere;
1091
+ }
1092
+
1093
+ .appium-flow-branch-step__meta {
1094
+ min-width: 0;
1095
+ color: #64748b;
1096
+ font-size: 10px;
1097
+ line-height: 1.3;
1098
+ overflow-wrap: anywhere;
1099
+ }
1100
+
1101
+ .appium-flow-branch__insert {
1102
+ position: relative;
1103
+ z-index: 1;
1104
+ justify-self: center;
1105
+ height: 24px;
1106
+ padding: 0 8px;
1107
+ border-style: dashed;
1108
+ border-radius: 999px;
1109
+ font-size: 12px;
1110
+ }
1111
+
1112
+ .appium-flow-branch > .el-dropdown {
1113
+ position: relative;
1114
+ z-index: 1;
1115
+ justify-self: center;
1116
+ }
1117
+
1118
+ .appium-flow-branch--yes .appium-flow-branch__label {
1119
+ background: #67c23a;
1120
+ }
1121
+
1122
+ .appium-flow-branch--no .appium-flow-branch__label {
1123
+ background: #f56c6c;
1124
+ }
1125
+
1126
+ .appium-flow-branch--yes {
1127
+ background: transparent;
1128
+ }
1129
+
1130
+ .appium-flow-branch--no {
1131
+ background: transparent;
1132
+ }
1133
+
1134
+ .appium-flow-branch--yes::before {
1135
+ background: #b3e19d;
1136
+ }
1137
+
1138
+ .appium-flow-branch--no::before {
1139
+ background: #fab6b6;
1140
+ }
1141
+
1142
+ .appium-flow-branch--yes .appium-flow-branch-step {
1143
+ border-color: #b3e19d;
1144
+ }
1145
+
1146
+ .appium-flow-branch--no .appium-flow-branch-step {
1147
+ border-color: #fab6b6;
1148
+ }
1149
+
1150
+ .appium-flow-editor {
1151
+ position: relative;
1152
+ z-index: 1;
1153
+ min-width: 0;
1154
+ padding: 10px;
1155
+ border: 1px solid #dce7f5;
1156
+ border-radius: 8px;
1157
+ background: #f8fbff;
1158
+ }
1159
+
1160
+ .appium-flow-editor__grid {
1161
+ display: grid;
1162
+ grid-template-columns: repeat(2, minmax(0, 1fr));
1163
+ gap: 8px;
1164
+ }
1165
+
1166
+ .appium-flow-editor__actions {
1167
+ display: flex;
1168
+ flex-wrap: wrap;
1169
+ gap: 8px;
1170
+ justify-content: flex-end;
1171
+ }
1172
+
1173
+ .appium-flow-insert {
1174
+ position: relative;
1175
+ z-index: 1;
1176
+ justify-self: start;
1177
+ display: inline-flex;
1178
+ align-items: center;
1179
+ gap: 4px;
1180
+ margin-left: 38px;
1181
+ padding: 3px 8px;
1182
+ border: 1px dashed #d6dde8;
1183
+ border-radius: 999px;
1184
+ background: #fff;
1185
+ color: #64748b;
1186
+ font-size: 12px;
1187
+ cursor: pointer;
1188
+ }
1189
+
1190
+ .appium-flow-insert:hover {
1191
+ border-color: #409eff;
1192
+ color: #409eff;
1193
+ background: #f5f9ff;
1194
+ }
1195
+
1196
+ .appium-flow-insert:disabled {
1197
+ cursor: not-allowed;
1198
+ opacity: 0.45;
1199
+ }
1200
+
1201
+ .appium-linked-script-select {
1202
+ width: 100%;
1203
+ }
1204
+
1205
+ .appium-linked-script-activity {
1206
+ display: block;
1207
+ box-sizing: border-box;
1208
+ width: 100%;
1209
+ padding: 8px 10px;
1210
+ border: 1px solid #e4e7ed;
1211
+ border-radius: 6px;
1212
+ background: #f7f8fa;
1213
+ color: #606266;
1214
+ font-family: inherit;
1215
+ line-height: 1.5;
1216
+ overflow-wrap: anywhere;
1217
+ }
1218
+
576
1219
  .appium-replay-output {
577
1220
  min-height: 120px;
578
1221
  max-height: 260px;
@@ -588,6 +1231,11 @@ select {
588
1231
  white-space: pre;
589
1232
  }
590
1233
 
1234
+ .appium-replay-output--dialog {
1235
+ height: 72vh;
1236
+ max-height: 72vh;
1237
+ }
1238
+
591
1239
  .appium-navigation-dialog {
592
1240
  display: grid;
593
1241
  gap: 12px;