@asup/context-menu 1.3.3 → 1.3.5
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/dist/cjs/main.css +65 -55
- package/dist/cjs/main.css.map +1 -1
- package/dist/cjs/main.js +314 -125
- package/dist/cjs/main.js.map +1 -1
- package/dist/context-menu.d.ts +4 -6
- package/dist/context-menu.d.ts.map +1 -1
- package/dist/main.css +65 -55
- package/dist/main.css.map +1 -1
- package/dist/main.js +320 -127
- package/dist/main.js.map +1 -1
- package/package.json +10 -10
package/dist/cjs/main.css
CHANGED
|
@@ -1,74 +1,87 @@
|
|
|
1
|
-
.
|
|
2
|
-
|
|
1
|
+
.aiw-WinFxq-anchor {
|
|
2
|
+
-webkit-font-smoothing: antialiased;
|
|
3
|
+
-moz-osx-font-smoothing: grayscale;
|
|
4
|
+
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
|
|
5
|
+
font-size: 9pt;
|
|
6
|
+
position: absolute;
|
|
7
|
+
top: 0;
|
|
8
|
+
left: 0;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.aiw-WinFxq-contextMenuHandler {
|
|
12
|
+
width: fit-content;
|
|
13
|
+
height: fit-content;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.aiw-WinFxq-contextMenu {
|
|
3
17
|
opacity: 1;
|
|
4
18
|
z-index: 10000;
|
|
5
19
|
background-color: #fbfdf6;
|
|
6
20
|
border: 1px solid #111418;
|
|
7
|
-
|
|
21
|
+
transition: opacity .3s linear;
|
|
8
22
|
position: absolute;
|
|
23
|
+
box-shadow: 4px 4px 4px #404040bf;
|
|
9
24
|
}
|
|
10
25
|
|
|
11
|
-
.
|
|
12
|
-
|
|
26
|
+
.aiw-WinFxq-contextMenu.aiw-WinFxq-hidden {
|
|
27
|
+
opacity: 0;
|
|
13
28
|
}
|
|
14
29
|
|
|
15
|
-
.
|
|
30
|
+
.aiw-WinFxq-contextMenu.aiw-WinFxq-visible {
|
|
31
|
+
opacity: 1;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.aiw-WinFxq-contextMenuItem {
|
|
16
35
|
color: #111418;
|
|
17
36
|
cursor: pointer;
|
|
18
37
|
white-space: nowrap;
|
|
19
38
|
flex-direction: row;
|
|
20
39
|
justify-content: space-between;
|
|
21
40
|
min-width: 80px;
|
|
22
|
-
height: 21px;
|
|
23
41
|
padding: 0 4px;
|
|
24
42
|
display: flex;
|
|
25
43
|
position: relative;
|
|
26
44
|
}
|
|
27
45
|
|
|
28
|
-
.
|
|
46
|
+
.aiw-WinFxq-contextMenuItem.aiw-WinFxq-disabled {
|
|
29
47
|
cursor: not-allowed;
|
|
30
48
|
background-color: #0003;
|
|
31
49
|
}
|
|
32
50
|
|
|
33
|
-
.
|
|
34
|
-
|
|
51
|
+
.aiw-WinFxq-contextMenuItem:first-child {
|
|
52
|
+
padding-top: 4px;
|
|
35
53
|
}
|
|
36
54
|
|
|
37
|
-
.
|
|
38
|
-
|
|
55
|
+
.aiw-WinFxq-contextMenuItem:last-child {
|
|
56
|
+
padding-bottom: 4px;
|
|
39
57
|
}
|
|
40
58
|
|
|
41
|
-
.
|
|
59
|
+
.aiw-WinFxq-contextMenuItem:not(.aiw-WinFxq-disabled):hover {
|
|
42
60
|
background-color: #fbe9e6;
|
|
43
61
|
}
|
|
44
62
|
|
|
45
|
-
.
|
|
46
|
-
border-top-left-radius: 6px;
|
|
47
|
-
border-top-right-radius: 6px;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.context-menu-item:hover:last-child {
|
|
51
|
-
border-bottom-right-radius: 6px;
|
|
52
|
-
border-bottom-left-radius: 6px;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.context-menu-item .caret-holder {
|
|
63
|
+
.aiw-WinFxq-contextMenuItem .aiw-WinFxq-caretHolder {
|
|
56
64
|
align-self: flex-end;
|
|
57
65
|
}
|
|
58
66
|
|
|
59
|
-
.
|
|
67
|
+
.aiw-WinFxq-contextMenuItem .aiw-WinFxq-caretHolder .aiw-WinFxq-subMenu {
|
|
60
68
|
z-index: 1;
|
|
61
69
|
position: relative;
|
|
62
70
|
}
|
|
63
71
|
|
|
64
|
-
.
|
|
72
|
+
.aiw-WinFxq-contextMenuItemLabel {
|
|
65
73
|
flex-grow: 1;
|
|
74
|
+
height: 19px;
|
|
66
75
|
}
|
|
67
76
|
|
|
68
|
-
.
|
|
77
|
+
.aiw-JfzGeq-lowMenu {
|
|
69
78
|
z-index: 2;
|
|
70
|
-
|
|
71
|
-
|
|
79
|
+
margin: 0;
|
|
80
|
+
transition: opacity .3s linear;
|
|
81
|
+
position: absolute;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.aiw-JfzGeq-lowMenuButtonHolder {
|
|
72
85
|
background-color: #111418;
|
|
73
86
|
border: 2px solid #111418;
|
|
74
87
|
border-top-right-radius: 4px;
|
|
@@ -76,31 +89,25 @@
|
|
|
76
89
|
border-bottom-left-radius: 4px;
|
|
77
90
|
flex-flow: wrap;
|
|
78
91
|
gap: 2px;
|
|
79
|
-
|
|
80
|
-
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
|
|
81
|
-
font-size: 9pt;
|
|
82
|
-
transition: opacity .3s linear;
|
|
92
|
+
width: fit-content;
|
|
83
93
|
display: flex;
|
|
84
|
-
position: absolute;
|
|
85
|
-
top: 0;
|
|
86
94
|
box-shadow: 2px 2px 2px #40404080;
|
|
87
95
|
}
|
|
88
96
|
|
|
89
|
-
.
|
|
97
|
+
.aiw-JfzGeq-lowMenu.aiw-JfzGeq-hidden {
|
|
90
98
|
opacity: 0;
|
|
91
99
|
}
|
|
92
100
|
|
|
93
|
-
.
|
|
101
|
+
.aiw-JfzGeq-lowMenu.aiw-JfzGeq-visible, .aiw-JfzGeq-lowMenu:hover {
|
|
94
102
|
opacity: 1;
|
|
95
103
|
}
|
|
96
104
|
|
|
97
|
-
.
|
|
105
|
+
.aiw-JfzGeq-lowMenuItem {
|
|
98
106
|
color: #111418;
|
|
99
107
|
cursor: pointer;
|
|
100
108
|
white-space: nowrap;
|
|
101
109
|
background-color: #fbfdf6;
|
|
102
110
|
border: 0;
|
|
103
|
-
border-radius: 4px;
|
|
104
111
|
flex-direction: row;
|
|
105
112
|
justify-content: space-between;
|
|
106
113
|
padding: 0 4px;
|
|
@@ -108,25 +115,29 @@
|
|
|
108
115
|
position: relative;
|
|
109
116
|
}
|
|
110
117
|
|
|
111
|
-
.
|
|
118
|
+
.aiw-JfzGeq-lowMenuItem.aiw-JfzGeq-disabled {
|
|
112
119
|
cursor: not-allowed;
|
|
113
120
|
background-color: #c8c8c8;
|
|
114
121
|
}
|
|
115
122
|
|
|
116
|
-
.
|
|
123
|
+
.aiw-JfzGeq-lowMenuItem:not(.aiw-JfzGeq-disabled):hover {
|
|
117
124
|
background-color: #fbe9e6;
|
|
118
125
|
}
|
|
119
126
|
|
|
120
|
-
.
|
|
127
|
+
.aiw-JfzGeq-lowMenu-item .aiw-JfzGeq-caretHolder {
|
|
121
128
|
align-self: flex-end;
|
|
122
129
|
}
|
|
123
130
|
|
|
124
|
-
.
|
|
131
|
+
.aiw-JfzGeq-lowMenuItem .aiw-JfzGeq-caretHolder .aiw-JfzGeq-subMenu {
|
|
125
132
|
z-index: 1;
|
|
126
133
|
position: relative;
|
|
127
134
|
}
|
|
128
135
|
|
|
129
|
-
.
|
|
136
|
+
.aiw-RIIF9a-contextWindowAnchor {
|
|
137
|
+
position: relative;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.aiw-RIIF9a-contextWindow {
|
|
130
141
|
z-index: 2001;
|
|
131
142
|
resize: both;
|
|
132
143
|
background-color: #fafafa;
|
|
@@ -143,7 +154,7 @@
|
|
|
143
154
|
box-shadow: 6px 6px 6px #40404080;
|
|
144
155
|
}
|
|
145
156
|
|
|
146
|
-
.
|
|
157
|
+
.aiw-RIIF9a-contextWindowTitle {
|
|
147
158
|
cursor: grab;
|
|
148
159
|
align-items: top;
|
|
149
160
|
border-bottom: 1px dashed #000;
|
|
@@ -155,11 +166,11 @@
|
|
|
155
166
|
display: flex;
|
|
156
167
|
}
|
|
157
168
|
|
|
158
|
-
.
|
|
169
|
+
.aiw-RIIF9a-contextWindowTitle.aiw-RIIF9a-moving {
|
|
159
170
|
cursor: grabbing;
|
|
160
171
|
}
|
|
161
172
|
|
|
162
|
-
.
|
|
173
|
+
.aiw-RIIF9a-contextWindowTitleText {
|
|
163
174
|
text-overflow: ellipsis;
|
|
164
175
|
white-space: nowrap;
|
|
165
176
|
width: calc(100% - 16px);
|
|
@@ -169,7 +180,7 @@
|
|
|
169
180
|
overflow: hidden;
|
|
170
181
|
}
|
|
171
182
|
|
|
172
|
-
.
|
|
183
|
+
.aiw-RIIF9a-contextWindowTitleClose {
|
|
173
184
|
color: #000;
|
|
174
185
|
cursor: pointer;
|
|
175
186
|
background-color: #fff;
|
|
@@ -180,36 +191,35 @@
|
|
|
180
191
|
display: inline-block;
|
|
181
192
|
}
|
|
182
193
|
|
|
183
|
-
.
|
|
194
|
+
.aiw-RIIF9a-contextWindowTitleClose:hover {
|
|
184
195
|
color: #fff;
|
|
185
196
|
background-color: #000;
|
|
186
197
|
}
|
|
187
198
|
|
|
188
|
-
.
|
|
199
|
+
.aiw-RIIF9a-contextWindowBody {
|
|
189
200
|
height: calc(100% - 40px);
|
|
190
201
|
margin-right: 4px;
|
|
191
202
|
padding-bottom: 8px;
|
|
192
203
|
overflow: auto;
|
|
193
204
|
}
|
|
194
205
|
|
|
195
|
-
.
|
|
206
|
+
.aiw-RIIF9a-contextWindowBody::-webkit-scrollbar {
|
|
196
207
|
width: 8px;
|
|
197
208
|
height: 8px;
|
|
198
209
|
}
|
|
199
210
|
|
|
200
|
-
.
|
|
211
|
+
.aiw-RIIF9a-contextWindowBody::-webkit-scrollbar-track {
|
|
201
212
|
background: #fff;
|
|
202
213
|
border-radius: 8px;
|
|
203
214
|
}
|
|
204
215
|
|
|
205
|
-
.
|
|
216
|
+
.aiw-RIIF9a-contextWindowBody::-webkit-scrollbar-thumb {
|
|
206
217
|
background: #d3d3d3;
|
|
207
218
|
border: none;
|
|
208
219
|
border-radius: 8px;
|
|
209
220
|
}
|
|
210
221
|
|
|
211
|
-
.
|
|
222
|
+
.aiw-RIIF9a-contextWindowBody::-webkit-scrollbar-thumb:hover {
|
|
212
223
|
background: gray;
|
|
213
224
|
}
|
|
214
|
-
|
|
215
225
|
/*# sourceMappingURL=main.css.map */
|
package/dist/cjs/main.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"
|
|
1
|
+
{"mappings":"ACAA;;;;;;;;;;AAWA;;;;;AAKA;;;;;;;;;;AAWA;;;;AAIA;;;;AAIA;;;;;;;;;;;;AAYA;;;;;AAKA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;;AAKA;;;;;ACzEA;;;;;;;AAOA;;;;;;;;;;;;;AAeA;;;;AAIA;;;;AAKA;;;;;;;;;;;;;AAaA;;;;;AAKA;;;;AAIA;;;;AAIA;;;;;ACzDA;;;;AAIA;;;;;;;;;;;;;;;;;AAiBA;;;;;;;;;;;;AAYA;;;;AAIA;;;;;;;;;;AAUA;;;;;;;;;;;AAWA;;;;;AAKA;;;;;;;AAOA;;;;;AAKA;;;;;AAKA;;;;;;AAMA","sources":["73c443d00d29748b","src/components/ContextMenu.module.css","src/components/LowMenu.module.css","src/components/ContextWindow.module.css"],"sourcesContent":["@import \"630df238250c5b7f\";\n@import \"c4d631588337cb29\";\n@import \"864ea8cd88b57e56\";\n",".anchor {\n position: absolute;\n top: 0;\n left: 0;\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Oxygen\", \"Ubuntu\",\n \"Cantarell\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\", sans-serif;\n font-size: 9pt;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.contextMenuHandler {\n height: fit-content;\n width: fit-content;\n}\n\n.contextMenu {\n position: absolute;\n border: 1px solid;\n border-color: rgb(17, 20, 24);\n opacity: 1;\n background-color: rgb(251, 253, 246);\n z-index: 10000;\n box-shadow: 4px 4px 4px rgb(64, 64, 64, 0.75);\n transition: opacity 0.3s linear;\n}\n\n.contextMenu.hidden {\n opacity: 0;\n}\n\n.contextMenu.visible {\n opacity: 1;\n}\n\n.contextMenuItem {\n color: rgb(17, 20, 24);\n cursor: pointer;\n padding: 0 4px;\n min-width: 80px;\n position: relative;\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n white-space: nowrap;\n}\n\n.contextMenuItem.disabled {\n background-color: rgba(0, 0, 0, 0.2);\n cursor: not-allowed;\n}\n\n.contextMenuItem:first-child {\n padding-top: 4px;\n}\n\n.contextMenuItem:last-child {\n padding-bottom: 4px;\n}\n\n.contextMenuItem:not(.disabled):hover {\n background-color: rgb(251, 233, 230);\n}\n\n.contextMenuItem .caretHolder {\n align-self: flex-end;\n}\n\n.contextMenuItem .caretHolder .subMenu {\n z-index: 1;\n position: relative;\n}\n\n.contextMenuItemLabel {\n flex-grow: 1;\n height: 19px;\n}\n",".lowMenu {\n z-index: 2;\n position: absolute;\n margin: 0px;\n transition: opacity 0.3s linear;\n}\n\n.lowMenuButtonHolder {\n border: 2px solid rgb(17, 20, 24);\n border-top-right-radius: 4px;\n border-bottom-left-radius: 4px;\n border-bottom-right-radius: 4px;\n background-color: rgb(17, 20, 24);\n box-shadow: 2px 2px 2px rgb(64, 64, 64, 0.5);\n display: flex;\n flex-wrap: wrap;\n flex-direction: row;\n gap: 2px;\n row-gap: 2px;\n width: fit-content;\n}\n\n.lowMenu.hidden {\n opacity: 0;\n}\n\n.lowMenu.visible,\n.lowMenu:hover {\n opacity: 1;\n}\n\n.lowMenuItem {\n background-color: rgb(251, 253, 246);\n border: 0;\n color: rgb(17, 20, 24);\n cursor: pointer;\n padding: 0 4px;\n position: relative;\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n white-space: nowrap;\n}\n\n.lowMenuItem.disabled {\n background-color: rgba(200, 200, 200);\n cursor: not-allowed;\n}\n\n.lowMenuItem:not(.disabled):hover {\n background-color: rgb(251, 233, 230);\n}\n\n.lowMenu-item .caretHolder {\n align-self: flex-end;\n}\n\n.lowMenuItem .caretHolder .subMenu {\n z-index: 1;\n position: relative;\n}\n",".contextWindowAnchor {\n position: relative;\n}\n\n.contextWindow {\n z-index: 2001;\n border: 1px black solid;\n margin: 0;\n padding: 4px;\n background-color: rgb(250, 250, 250);\n box-shadow: 6px 6px 6px rgb(64, 64, 64, 0.5);\n transition: opacity 0.25s linear;\n justify-content: flex-start;\n position: absolute;\n border-top-left-radius: 8px;\n border-top-right-radius: 8px;\n border-bottom-left-radius: 8px;\n resize: both;\n overflow: auto;\n}\n\n.contextWindowTitle {\n border-bottom: 1px black dashed;\n padding-bottom: 4px;\n margin: 0 4px 3px 4px;\n height: 24px;\n max-height: 24px;\n cursor: grab;\n align-items: top;\n display: flex;\n width: calc(100% - 8px);\n}\n\n.contextWindowTitle.moving {\n cursor: grabbing;\n}\n\n.contextWindowTitleText {\n font-size: 18px;\n font-weight: 600;\n display: inline-block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n width: calc(100% - 16px);\n}\n\n.contextWindowTitleClose {\n display: inline-block;\n color: black;\n background-color: white;\n height: 16px;\n width: 16px;\n border-radius: 3px;\n margin-left: 2px;\n cursor: pointer;\n}\n\n.contextWindowTitleClose:hover {\n background-color: black;\n color: white;\n}\n\n.contextWindowBody {\n overflow: auto;\n padding-bottom: 8px;\n margin-right: 4px;\n height: calc(100% - 40px);\n}\n\n.contextWindowBody::-webkit-scrollbar {\n width: 8px;\n height: 8px;\n}\n\n.contextWindowBody::-webkit-scrollbar-track {\n background: white;\n border-radius: 8px;\n}\n\n.contextWindowBody::-webkit-scrollbar-thumb {\n background: lightgrey;\n border: none;\n border-radius: 8px;\n}\n\n.contextWindowBody::-webkit-scrollbar-thumb:hover {\n background: grey;\n}\n"],"names":[],"version":3,"file":"main.css.map"}
|