mce 0.19.2 → 0.21.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.
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
package/dist/index.css CHANGED
@@ -1050,6 +1050,162 @@
1050
1050
  font-size: 0.75rem;
1051
1051
  padding: 0 2px;
1052
1052
  font-family: system-ui, -apple-system, sans-serif;
1053
+ }.m-table-editor {
1054
+ position: absolute;
1055
+ width: 0;
1056
+ height: 0;
1057
+ left: 0;
1058
+ top: 0;
1059
+ overflow: visible;
1060
+ pointer-events: none;
1061
+ }
1062
+ .m-table-editor__box {
1063
+ position: absolute;
1064
+ pointer-events: auto;
1065
+ box-shadow: 0 0 0 1px rgba(var(--m-theme-primary), 0.5);
1066
+ }
1067
+ .m-table-editor__bar {
1068
+ position: absolute;
1069
+ display: flex;
1070
+ align-items: stretch;
1071
+ box-sizing: border-box;
1072
+ background: #fff;
1073
+ border: 1px solid rgba(var(--m-theme-on-background), 0.16);
1074
+ border-bottom: none;
1075
+ font-size: 12px;
1076
+ }
1077
+ .m-table-editor__bar-name {
1078
+ flex: none;
1079
+ display: flex;
1080
+ align-items: center;
1081
+ justify-content: center;
1082
+ width: 100%;
1083
+ max-width: 56px;
1084
+ padding: 0 6px;
1085
+ border-right: 1px solid rgba(var(--m-theme-on-background), 0.16);
1086
+ color: rgb(var(--m-theme-on-background));
1087
+ font-weight: 600;
1088
+ }
1089
+ .m-table-editor__bar-content {
1090
+ flex: 1;
1091
+ display: flex;
1092
+ align-items: center;
1093
+ padding: 0 8px;
1094
+ overflow: hidden;
1095
+ white-space: nowrap;
1096
+ text-overflow: ellipsis;
1097
+ color: rgb(var(--m-theme-on-background));
1098
+ }
1099
+ .m-table-editor__cell {
1100
+ position: absolute;
1101
+ box-sizing: border-box;
1102
+ cursor: cell;
1103
+ }
1104
+ .m-table-editor__text {
1105
+ position: absolute;
1106
+ z-index: 4;
1107
+ pointer-events: auto;
1108
+ }
1109
+ .m-table-editor__text-editor {
1110
+ pointer-events: auto !important;
1111
+ cursor: text;
1112
+ }
1113
+ .m-table-editor__selection {
1114
+ position: absolute;
1115
+ pointer-events: none;
1116
+ z-index: 3;
1117
+ border: 2px solid rgb(var(--m-theme-primary));
1118
+ }
1119
+ .m-table-editor__selection--range {
1120
+ background: rgba(var(--m-theme-primary), 0.12);
1121
+ }
1122
+ .m-table-editor__corner {
1123
+ position: absolute;
1124
+ box-sizing: border-box;
1125
+ background: #f4f5f7;
1126
+ border: 1px solid rgba(var(--m-theme-on-background), 0.16);
1127
+ cursor: pointer;
1128
+ overflow: hidden;
1129
+ }
1130
+ .m-table-editor__corner::after {
1131
+ content: "";
1132
+ position: absolute;
1133
+ right: 2px;
1134
+ bottom: 2px;
1135
+ width: 0;
1136
+ height: 0;
1137
+ border-style: solid;
1138
+ border-width: 0 0 7px 7px;
1139
+ border-color: transparent transparent rgba(var(--m-theme-on-background), 0.5) transparent;
1140
+ }
1141
+ .m-table-editor__col-header, .m-table-editor__row-header {
1142
+ position: absolute;
1143
+ box-sizing: border-box;
1144
+ display: flex;
1145
+ align-items: center;
1146
+ justify-content: center;
1147
+ background: #f4f5f7;
1148
+ border: 1px solid rgba(var(--m-theme-on-background), 0.16);
1149
+ font-size: 12px;
1150
+ color: rgba(var(--m-theme-on-background), 0.7);
1151
+ cursor: pointer;
1152
+ user-select: none;
1153
+ }
1154
+ .m-table-editor__col-header:hover, .m-table-editor__row-header:hover {
1155
+ background: rgba(var(--m-theme-primary), 0.12);
1156
+ }
1157
+ .m-table-editor__col-header--active, .m-table-editor__row-header--active {
1158
+ background: rgba(var(--m-theme-primary), 0.85);
1159
+ color: #fff;
1160
+ }
1161
+ .m-table-editor__col-resizer {
1162
+ position: absolute;
1163
+ width: 7px;
1164
+ margin-left: -3px;
1165
+ cursor: col-resize;
1166
+ z-index: 5;
1167
+ }
1168
+ .m-table-editor__row-resizer {
1169
+ position: absolute;
1170
+ height: 7px;
1171
+ margin-top: -3px;
1172
+ cursor: row-resize;
1173
+ z-index: 5;
1174
+ }
1175
+ .m-table-editor__menu {
1176
+ position: fixed;
1177
+ pointer-events: auto;
1178
+ min-width: 160px;
1179
+ padding: 4px;
1180
+ background: rgb(var(--m-theme-surface, 255 255 255));
1181
+ border-radius: 6px;
1182
+ box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
1183
+ z-index: 10;
1184
+ display: flex;
1185
+ flex-direction: column;
1186
+ }
1187
+ .m-table-editor__menu-item {
1188
+ appearance: none;
1189
+ border: none;
1190
+ background: transparent;
1191
+ text-align: left;
1192
+ padding: 6px 10px;
1193
+ font-size: 13px;
1194
+ border-radius: 4px;
1195
+ cursor: pointer;
1196
+ color: rgb(var(--m-theme-on-surface, 0 0 0));
1197
+ }
1198
+ .m-table-editor__menu-item:hover:not(:disabled) {
1199
+ background: rgba(var(--m-theme-primary), 0.12);
1200
+ }
1201
+ .m-table-editor__menu-item:disabled {
1202
+ opacity: 0.4;
1203
+ cursor: not-allowed;
1204
+ }
1205
+ .m-table-editor__menu-sep {
1206
+ height: 1px;
1207
+ margin: 4px 6px;
1208
+ background: rgba(var(--m-theme-on-background), 0.12);
1053
1209
  }.m-payhead {
1054
1210
  bottom: 0;
1055
1211
  left: -5px;