@asup/context-menu 1.3.5 → 1.3.7
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 +39 -34
- package/dist/cjs/main.css.map +1 -1
- package/dist/cjs/main.js +102 -90
- package/dist/cjs/main.js.map +1 -1
- package/dist/context-menu.d.ts +4 -4
- package/dist/context-menu.d.ts.map +1 -1
- package/dist/main.css +39 -34
- package/dist/main.css.map +1 -1
- package/dist/main.js +102 -90
- package/dist/main.js.map +1 -1
- package/package.json +32 -34
package/dist/cjs/main.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.aiw-WinFxq-anchor {
|
|
1
|
+
.aiw-ContextMenu-module-WinFxq-anchor {
|
|
2
2
|
-webkit-font-smoothing: antialiased;
|
|
3
3
|
-moz-osx-font-smoothing: grayscale;
|
|
4
4
|
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
|
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
left: 0;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
.aiw-WinFxq-contextMenuHandler {
|
|
11
|
+
.aiw-ContextMenu-module-WinFxq-contextMenuHandler {
|
|
12
12
|
width: fit-content;
|
|
13
13
|
height: fit-content;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
.aiw-WinFxq-contextMenu {
|
|
16
|
+
.aiw-ContextMenu-module-WinFxq-contextMenu {
|
|
17
17
|
opacity: 1;
|
|
18
18
|
z-index: 10000;
|
|
19
19
|
background-color: #fbfdf6;
|
|
@@ -23,15 +23,15 @@
|
|
|
23
23
|
box-shadow: 4px 4px 4px #404040bf;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
.aiw-WinFxq-contextMenu.aiw-WinFxq-hidden {
|
|
26
|
+
.aiw-ContextMenu-module-WinFxq-contextMenu.aiw-ContextMenu-module-WinFxq-hidden {
|
|
27
27
|
opacity: 0;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
.aiw-WinFxq-contextMenu.aiw-WinFxq-visible {
|
|
30
|
+
.aiw-ContextMenu-module-WinFxq-contextMenu.aiw-ContextMenu-module-WinFxq-visible {
|
|
31
31
|
opacity: 1;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
.aiw-WinFxq-contextMenuItem {
|
|
34
|
+
.aiw-ContextMenu-module-WinFxq-contextMenuItem {
|
|
35
35
|
color: #111418;
|
|
36
36
|
cursor: pointer;
|
|
37
37
|
white-space: nowrap;
|
|
@@ -43,45 +43,45 @@
|
|
|
43
43
|
position: relative;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
.aiw-WinFxq-contextMenuItem.aiw-WinFxq-disabled {
|
|
46
|
+
.aiw-ContextMenu-module-WinFxq-contextMenuItem.aiw-ContextMenu-module-WinFxq-disabled {
|
|
47
47
|
cursor: not-allowed;
|
|
48
48
|
background-color: #0003;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
.aiw-WinFxq-contextMenuItem:first-child {
|
|
51
|
+
.aiw-ContextMenu-module-WinFxq-contextMenuItem:first-child {
|
|
52
52
|
padding-top: 4px;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
.aiw-WinFxq-contextMenuItem:last-child {
|
|
55
|
+
.aiw-ContextMenu-module-WinFxq-contextMenuItem:last-child {
|
|
56
56
|
padding-bottom: 4px;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
.aiw-WinFxq-contextMenuItem:not(.aiw-WinFxq-disabled):hover {
|
|
59
|
+
.aiw-ContextMenu-module-WinFxq-contextMenuItem:not(.aiw-ContextMenu-module-WinFxq-disabled):hover {
|
|
60
60
|
background-color: #fbe9e6;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
.aiw-WinFxq-contextMenuItem .aiw-WinFxq-caretHolder {
|
|
63
|
+
.aiw-ContextMenu-module-WinFxq-contextMenuItem .aiw-ContextMenu-module-WinFxq-caretHolder {
|
|
64
64
|
align-self: flex-end;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
.aiw-WinFxq-contextMenuItem .aiw-WinFxq-caretHolder .aiw-WinFxq-subMenu {
|
|
67
|
+
.aiw-ContextMenu-module-WinFxq-contextMenuItem .aiw-ContextMenu-module-WinFxq-caretHolder .aiw-ContextMenu-module-WinFxq-subMenu {
|
|
68
68
|
z-index: 1;
|
|
69
69
|
position: relative;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
.aiw-WinFxq-contextMenuItemLabel {
|
|
72
|
+
.aiw-ContextMenu-module-WinFxq-contextMenuItemLabel {
|
|
73
73
|
flex-grow: 1;
|
|
74
74
|
height: 19px;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
.aiw-JfzGeq-lowMenu {
|
|
77
|
+
.aiw-LowMenu-module-JfzGeq-lowMenu {
|
|
78
78
|
z-index: 2;
|
|
79
79
|
margin: 0;
|
|
80
80
|
transition: opacity .3s linear;
|
|
81
81
|
position: absolute;
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
.aiw-JfzGeq-lowMenuButtonHolder {
|
|
84
|
+
.aiw-LowMenu-module-JfzGeq-lowMenuButtonHolder {
|
|
85
85
|
background-color: #111418;
|
|
86
86
|
border: 2px solid #111418;
|
|
87
87
|
border-top-right-radius: 4px;
|
|
@@ -94,15 +94,15 @@
|
|
|
94
94
|
box-shadow: 2px 2px 2px #40404080;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
.aiw-JfzGeq-lowMenu.aiw-JfzGeq-hidden {
|
|
97
|
+
.aiw-LowMenu-module-JfzGeq-lowMenu.aiw-LowMenu-module-JfzGeq-hidden {
|
|
98
98
|
opacity: 0;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
-
.aiw-JfzGeq-lowMenu.aiw-JfzGeq-visible, .aiw-JfzGeq-lowMenu:hover {
|
|
101
|
+
.aiw-LowMenu-module-JfzGeq-lowMenu.aiw-LowMenu-module-JfzGeq-visible, .aiw-LowMenu-module-JfzGeq-lowMenu:hover {
|
|
102
102
|
opacity: 1;
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
.aiw-JfzGeq-lowMenuItem {
|
|
105
|
+
.aiw-LowMenu-module-JfzGeq-lowMenuItem {
|
|
106
106
|
color: #111418;
|
|
107
107
|
cursor: pointer;
|
|
108
108
|
white-space: nowrap;
|
|
@@ -115,29 +115,29 @@
|
|
|
115
115
|
position: relative;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
.aiw-JfzGeq-lowMenuItem.aiw-JfzGeq-disabled {
|
|
118
|
+
.aiw-LowMenu-module-JfzGeq-lowMenuItem.aiw-LowMenu-module-JfzGeq-disabled {
|
|
119
119
|
cursor: not-allowed;
|
|
120
120
|
background-color: #c8c8c8;
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
-
.aiw-JfzGeq-lowMenuItem:not(.aiw-JfzGeq-disabled):hover {
|
|
123
|
+
.aiw-LowMenu-module-JfzGeq-lowMenuItem:not(.aiw-LowMenu-module-JfzGeq-disabled):hover {
|
|
124
124
|
background-color: #fbe9e6;
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
-
.aiw-JfzGeq-lowMenu-item .aiw-JfzGeq-caretHolder {
|
|
127
|
+
.aiw-LowMenu-module-JfzGeq-lowMenu-item .aiw-LowMenu-module-JfzGeq-caretHolder {
|
|
128
128
|
align-self: flex-end;
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
-
.aiw-JfzGeq-lowMenuItem .aiw-JfzGeq-caretHolder .aiw-JfzGeq-subMenu {
|
|
131
|
+
.aiw-LowMenu-module-JfzGeq-lowMenuItem .aiw-LowMenu-module-JfzGeq-caretHolder .aiw-LowMenu-module-JfzGeq-subMenu {
|
|
132
132
|
z-index: 1;
|
|
133
133
|
position: relative;
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
.aiw-RIIF9a-contextWindowAnchor {
|
|
136
|
+
.aiw-ContextWindow-module-RIIF9a-contextWindowAnchor {
|
|
137
137
|
position: relative;
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
-
.aiw-RIIF9a-contextWindow {
|
|
140
|
+
.aiw-ContextWindow-module-RIIF9a-contextWindow {
|
|
141
141
|
z-index: 2001;
|
|
142
142
|
resize: both;
|
|
143
143
|
background-color: #fafafa;
|
|
@@ -146,6 +146,8 @@
|
|
|
146
146
|
border-top-right-radius: 8px;
|
|
147
147
|
border-bottom-left-radius: 8px;
|
|
148
148
|
justify-content: flex-start;
|
|
149
|
+
max-width: 95vw;
|
|
150
|
+
max-height: 95vh;
|
|
149
151
|
margin: 0;
|
|
150
152
|
padding: 4px;
|
|
151
153
|
transition: opacity .25s linear;
|
|
@@ -154,10 +156,12 @@
|
|
|
154
156
|
box-shadow: 6px 6px 6px #40404080;
|
|
155
157
|
}
|
|
156
158
|
|
|
157
|
-
.aiw-RIIF9a-contextWindowTitle {
|
|
159
|
+
.aiw-ContextWindow-module-RIIF9a-contextWindowTitle {
|
|
158
160
|
cursor: grab;
|
|
159
161
|
align-items: top;
|
|
160
162
|
border-bottom: 1px dashed #000;
|
|
163
|
+
flex-direction: row;
|
|
164
|
+
align-items: center;
|
|
161
165
|
width: calc(100% - 8px);
|
|
162
166
|
height: 24px;
|
|
163
167
|
max-height: 24px;
|
|
@@ -166,11 +170,11 @@
|
|
|
166
170
|
display: flex;
|
|
167
171
|
}
|
|
168
172
|
|
|
169
|
-
.aiw-RIIF9a-contextWindowTitle.aiw-RIIF9a-moving {
|
|
173
|
+
.aiw-ContextWindow-module-RIIF9a-contextWindowTitle.aiw-ContextWindow-module-RIIF9a-moving {
|
|
170
174
|
cursor: grabbing;
|
|
171
175
|
}
|
|
172
176
|
|
|
173
|
-
.aiw-RIIF9a-contextWindowTitleText {
|
|
177
|
+
.aiw-ContextWindow-module-RIIF9a-contextWindowTitleText {
|
|
174
178
|
text-overflow: ellipsis;
|
|
175
179
|
white-space: nowrap;
|
|
176
180
|
width: calc(100% - 16px);
|
|
@@ -180,7 +184,7 @@
|
|
|
180
184
|
overflow: hidden;
|
|
181
185
|
}
|
|
182
186
|
|
|
183
|
-
.aiw-RIIF9a-contextWindowTitleClose {
|
|
187
|
+
.aiw-ContextWindow-module-RIIF9a-contextWindowTitleClose {
|
|
184
188
|
color: #000;
|
|
185
189
|
cursor: pointer;
|
|
186
190
|
background-color: #fff;
|
|
@@ -188,38 +192,39 @@
|
|
|
188
192
|
width: 16px;
|
|
189
193
|
height: 16px;
|
|
190
194
|
margin-left: 2px;
|
|
195
|
+
line-height: 16px;
|
|
191
196
|
display: inline-block;
|
|
192
197
|
}
|
|
193
198
|
|
|
194
|
-
.aiw-RIIF9a-contextWindowTitleClose:hover {
|
|
199
|
+
.aiw-ContextWindow-module-RIIF9a-contextWindowTitleClose:hover {
|
|
195
200
|
color: #fff;
|
|
196
201
|
background-color: #000;
|
|
197
202
|
}
|
|
198
203
|
|
|
199
|
-
.aiw-RIIF9a-contextWindowBody {
|
|
204
|
+
.aiw-ContextWindow-module-RIIF9a-contextWindowBody {
|
|
200
205
|
height: calc(100% - 40px);
|
|
201
206
|
margin-right: 4px;
|
|
202
207
|
padding-bottom: 8px;
|
|
203
208
|
overflow: auto;
|
|
204
209
|
}
|
|
205
210
|
|
|
206
|
-
.aiw-RIIF9a-contextWindowBody::-webkit-scrollbar {
|
|
211
|
+
.aiw-ContextWindow-module-RIIF9a-contextWindowBody::-webkit-scrollbar {
|
|
207
212
|
width: 8px;
|
|
208
213
|
height: 8px;
|
|
209
214
|
}
|
|
210
215
|
|
|
211
|
-
.aiw-RIIF9a-contextWindowBody::-webkit-scrollbar-track {
|
|
216
|
+
.aiw-ContextWindow-module-RIIF9a-contextWindowBody::-webkit-scrollbar-track {
|
|
212
217
|
background: #fff;
|
|
213
218
|
border-radius: 8px;
|
|
214
219
|
}
|
|
215
220
|
|
|
216
|
-
.aiw-RIIF9a-contextWindowBody::-webkit-scrollbar-thumb {
|
|
221
|
+
.aiw-ContextWindow-module-RIIF9a-contextWindowBody::-webkit-scrollbar-thumb {
|
|
217
222
|
background: #d3d3d3;
|
|
218
223
|
border: none;
|
|
219
224
|
border-radius: 8px;
|
|
220
225
|
}
|
|
221
226
|
|
|
222
|
-
.aiw-RIIF9a-contextWindowBody::-webkit-scrollbar-thumb:hover {
|
|
227
|
+
.aiw-ContextWindow-module-RIIF9a-contextWindowBody::-webkit-scrollbar-thumb:hover {
|
|
223
228
|
background: gray;
|
|
224
229
|
}
|
|
225
230
|
/*# sourceMappingURL=main.css.map */
|
package/dist/cjs/main.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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
|
|
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;;;;;;;;;;;;;;;;;;;AAmBA;;;;;;;;;;;;;;AAcA;;;;AAIA;;;;;;;;;;AAUA;;;;;;;;;;;;AAYA;;;;;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 max-height: 95vh;\n max-width: 95vw;\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 flex-direction: row;\n align-items: center;\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 line-height: 16px;\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"}
|
package/dist/cjs/main.js
CHANGED
|
@@ -62,16 +62,16 @@ var $da5a7b95ca760552$export$683472f6198a076e;
|
|
|
62
62
|
var $da5a7b95ca760552$export$73920f18ca706874;
|
|
63
63
|
var $da5a7b95ca760552$export$6e0e6ce39e5a0361;
|
|
64
64
|
var $da5a7b95ca760552$export$664c6d24e3175067;
|
|
65
|
-
$da5a7b95ca760552$export$2e2992790a6f69a8 = `aiw-WinFxq-anchor`;
|
|
66
|
-
$da5a7b95ca760552$export$6ed5f4fbab298e07 = `aiw-WinFxq-caretHolder`;
|
|
67
|
-
$da5a7b95ca760552$export$218b899e1d476006 = `aiw-WinFxq-contextMenu`;
|
|
68
|
-
$da5a7b95ca760552$export$ed8ffb5bb55a3bc8 = `aiw-WinFxq-contextMenuHandler`;
|
|
69
|
-
$da5a7b95ca760552$export$e5ea51c279904378 = `aiw-WinFxq-contextMenuItem`;
|
|
70
|
-
$da5a7b95ca760552$export$6ada86c5b962aa22 = `aiw-WinFxq-contextMenuItemLabel`;
|
|
71
|
-
$da5a7b95ca760552$export$683472f6198a076e = `aiw-WinFxq-disabled`;
|
|
72
|
-
$da5a7b95ca760552$export$73920f18ca706874 = `aiw-WinFxq-hidden`;
|
|
73
|
-
$da5a7b95ca760552$export$6e0e6ce39e5a0361 = `aiw-WinFxq-subMenu`;
|
|
74
|
-
$da5a7b95ca760552$export$664c6d24e3175067 = `aiw-WinFxq-visible`;
|
|
65
|
+
$da5a7b95ca760552$export$2e2992790a6f69a8 = `aiw-ContextMenu-module-WinFxq-anchor`;
|
|
66
|
+
$da5a7b95ca760552$export$6ed5f4fbab298e07 = `aiw-ContextMenu-module-WinFxq-caretHolder`;
|
|
67
|
+
$da5a7b95ca760552$export$218b899e1d476006 = `aiw-ContextMenu-module-WinFxq-contextMenu`;
|
|
68
|
+
$da5a7b95ca760552$export$ed8ffb5bb55a3bc8 = `aiw-ContextMenu-module-WinFxq-contextMenuHandler`;
|
|
69
|
+
$da5a7b95ca760552$export$e5ea51c279904378 = `aiw-ContextMenu-module-WinFxq-contextMenuItem`;
|
|
70
|
+
$da5a7b95ca760552$export$6ada86c5b962aa22 = `aiw-ContextMenu-module-WinFxq-contextMenuItemLabel`;
|
|
71
|
+
$da5a7b95ca760552$export$683472f6198a076e = `aiw-ContextMenu-module-WinFxq-disabled`;
|
|
72
|
+
$da5a7b95ca760552$export$73920f18ca706874 = `aiw-ContextMenu-module-WinFxq-hidden`;
|
|
73
|
+
$da5a7b95ca760552$export$6e0e6ce39e5a0361 = `aiw-ContextMenu-module-WinFxq-subMenu`;
|
|
74
|
+
$da5a7b95ca760552$export$664c6d24e3175067 = `aiw-ContextMenu-module-WinFxq-visible`;
|
|
75
75
|
|
|
76
76
|
|
|
77
77
|
|
|
@@ -190,15 +190,15 @@ var $63cdf2819565020c$export$22ec12d194e0789c;
|
|
|
190
190
|
var $63cdf2819565020c$export$2ad34a478577e75d;
|
|
191
191
|
var $63cdf2819565020c$export$6e0e6ce39e5a0361;
|
|
192
192
|
var $63cdf2819565020c$export$664c6d24e3175067;
|
|
193
|
-
$63cdf2819565020c$export$6ed5f4fbab298e07 = `aiw-JfzGeq-caretHolder`;
|
|
194
|
-
$63cdf2819565020c$export$683472f6198a076e = `aiw-JfzGeq-disabled`;
|
|
195
|
-
$63cdf2819565020c$export$73920f18ca706874 = `aiw-JfzGeq-hidden`;
|
|
196
|
-
$63cdf2819565020c$export$59e4b099a896b33 = `aiw-JfzGeq-lowMenu`;
|
|
197
|
-
$63cdf2819565020c$export$19fbf76b734bf310 = `aiw-JfzGeq-lowMenu-item`;
|
|
198
|
-
$63cdf2819565020c$export$22ec12d194e0789c = `aiw-JfzGeq-lowMenuButtonHolder`;
|
|
199
|
-
$63cdf2819565020c$export$2ad34a478577e75d = `aiw-JfzGeq-lowMenuItem`;
|
|
200
|
-
$63cdf2819565020c$export$6e0e6ce39e5a0361 = `aiw-JfzGeq-subMenu`;
|
|
201
|
-
$63cdf2819565020c$export$664c6d24e3175067 = `aiw-JfzGeq-visible`;
|
|
193
|
+
$63cdf2819565020c$export$6ed5f4fbab298e07 = `aiw-LowMenu-module-JfzGeq-caretHolder`;
|
|
194
|
+
$63cdf2819565020c$export$683472f6198a076e = `aiw-LowMenu-module-JfzGeq-disabled`;
|
|
195
|
+
$63cdf2819565020c$export$73920f18ca706874 = `aiw-LowMenu-module-JfzGeq-hidden`;
|
|
196
|
+
$63cdf2819565020c$export$59e4b099a896b33 = `aiw-LowMenu-module-JfzGeq-lowMenu`;
|
|
197
|
+
$63cdf2819565020c$export$19fbf76b734bf310 = `aiw-LowMenu-module-JfzGeq-lowMenu-item`;
|
|
198
|
+
$63cdf2819565020c$export$22ec12d194e0789c = `aiw-LowMenu-module-JfzGeq-lowMenuButtonHolder`;
|
|
199
|
+
$63cdf2819565020c$export$2ad34a478577e75d = `aiw-LowMenu-module-JfzGeq-lowMenuItem`;
|
|
200
|
+
$63cdf2819565020c$export$6e0e6ce39e5a0361 = `aiw-LowMenu-module-JfzGeq-subMenu`;
|
|
201
|
+
$63cdf2819565020c$export$664c6d24e3175067 = `aiw-LowMenu-module-JfzGeq-visible`;
|
|
202
202
|
|
|
203
203
|
|
|
204
204
|
|
|
@@ -383,9 +383,6 @@ const $3c568ee547c732c3$export$ed4f9641643dc7e4 = ({ children: children, menuIte
|
|
|
383
383
|
(0, (/*@__PURE__*/$parcel$interopDefault($da5a7b95ca760552$exports))).contextMenuHandler,
|
|
384
384
|
rest.className
|
|
385
385
|
].join(" "),
|
|
386
|
-
style: {
|
|
387
|
-
...rest.style
|
|
388
|
-
},
|
|
389
386
|
onContextMenu: (e)=>{
|
|
390
387
|
if (!showLowMenu) {
|
|
391
388
|
setMenuInDom(true);
|
|
@@ -399,7 +396,7 @@ const $3c568ee547c732c3$export$ed4f9641643dc7e4 = ({ children: children, menuIte
|
|
|
399
396
|
}, 1);
|
|
400
397
|
}
|
|
401
398
|
},
|
|
402
|
-
onMouseEnter: ()=>{
|
|
399
|
+
onMouseEnter: (e)=>{
|
|
403
400
|
if (showLowMenu) {
|
|
404
401
|
setMenuInDom(true);
|
|
405
402
|
setMouseOverHandlerDiv(false);
|
|
@@ -408,13 +405,15 @@ const $3c568ee547c732c3$export$ed4f9641643dc7e4 = ({ children: children, menuIte
|
|
|
408
405
|
setMouseOverHandlerDiv(true);
|
|
409
406
|
}, 1);
|
|
410
407
|
}
|
|
408
|
+
rest.onMouseEnter && rest.onMouseEnter(e);
|
|
411
409
|
},
|
|
412
|
-
onMouseLeave: ()=>{
|
|
410
|
+
onMouseLeave: (e)=>{
|
|
413
411
|
if (showLowMenu) {
|
|
414
412
|
removeController.current.abort();
|
|
415
413
|
removeController.current = new AbortController();
|
|
416
414
|
setMouseOverHandlerDiv(false);
|
|
417
415
|
}
|
|
416
|
+
rest.onMouseLeave && rest.onMouseLeave(e);
|
|
418
417
|
},
|
|
419
418
|
children: children
|
|
420
419
|
}),
|
|
@@ -526,13 +525,13 @@ var $7c5fb3f6c1601913$export$1b02f2cd2f7db0f4;
|
|
|
526
525
|
var $7c5fb3f6c1601913$export$7ba38d4cc2870e66;
|
|
527
526
|
var $7c5fb3f6c1601913$export$cebbac70b4d99c48;
|
|
528
527
|
var $7c5fb3f6c1601913$export$d03a2f3acc60252b;
|
|
529
|
-
$7c5fb3f6c1601913$export$72cad2e5ad4d2674 = `aiw-RIIF9a-contextWindow`;
|
|
530
|
-
$7c5fb3f6c1601913$export$9f3a8a17ac700f7d = `aiw-RIIF9a-contextWindowAnchor`;
|
|
531
|
-
$7c5fb3f6c1601913$export$dfb2c4d2d1c0156f = `aiw-RIIF9a-contextWindowBody`;
|
|
532
|
-
$7c5fb3f6c1601913$export$1b02f2cd2f7db0f4 = `aiw-RIIF9a-contextWindowTitle`;
|
|
533
|
-
$7c5fb3f6c1601913$export$7ba38d4cc2870e66 = `aiw-RIIF9a-contextWindowTitleClose`;
|
|
534
|
-
$7c5fb3f6c1601913$export$cebbac70b4d99c48 = `aiw-RIIF9a-contextWindowTitleText`;
|
|
535
|
-
$7c5fb3f6c1601913$export$d03a2f3acc60252b = `aiw-RIIF9a-moving`;
|
|
528
|
+
$7c5fb3f6c1601913$export$72cad2e5ad4d2674 = `aiw-ContextWindow-module-RIIF9a-contextWindow`;
|
|
529
|
+
$7c5fb3f6c1601913$export$9f3a8a17ac700f7d = `aiw-ContextWindow-module-RIIF9a-contextWindowAnchor`;
|
|
530
|
+
$7c5fb3f6c1601913$export$dfb2c4d2d1c0156f = `aiw-ContextWindow-module-RIIF9a-contextWindowBody`;
|
|
531
|
+
$7c5fb3f6c1601913$export$1b02f2cd2f7db0f4 = `aiw-ContextWindow-module-RIIF9a-contextWindowTitle`;
|
|
532
|
+
$7c5fb3f6c1601913$export$7ba38d4cc2870e66 = `aiw-ContextWindow-module-RIIF9a-contextWindowTitleClose`;
|
|
533
|
+
$7c5fb3f6c1601913$export$cebbac70b4d99c48 = `aiw-ContextWindow-module-RIIF9a-contextWindowTitleText`;
|
|
534
|
+
$7c5fb3f6c1601913$export$d03a2f3acc60252b = `aiw-ContextWindow-module-RIIF9a-moving`;
|
|
536
535
|
|
|
537
536
|
|
|
538
537
|
const $46fb0088a1bbb6d8$export$1af8984c69ba1b24 = ({ id: id, visible: visible, title: title, children: children, onOpen: onOpen, onClose: onClose, ...rest })=>{
|
|
@@ -630,71 +629,84 @@ const $46fb0088a1bbb6d8$export$1af8984c69ba1b24 = ({ id: id, visible: visible, t
|
|
|
630
629
|
windowVisible
|
|
631
630
|
]);
|
|
632
631
|
var _rest_style_minHeight, _rest_style_minWidth, _rest_style_maxHeight, _rest_style_maxWidth;
|
|
633
|
-
return /*#__PURE__*/ (0, $gTuX4$reactjsxruntime.
|
|
632
|
+
return /*#__PURE__*/ (0, $gTuX4$reactjsxruntime.jsxs)("div", {
|
|
634
633
|
className: (0, (/*@__PURE__*/$parcel$interopDefault($7c5fb3f6c1601913$exports))).contextWindowAnchor,
|
|
635
634
|
ref: divRef,
|
|
636
|
-
children:
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
children:
|
|
684
|
-
|
|
635
|
+
children: [
|
|
636
|
+
!windowStack && /*#__PURE__*/ (0, $gTuX4$reactjsxruntime.jsxs)("div", {
|
|
637
|
+
...rest,
|
|
638
|
+
children: [
|
|
639
|
+
false,
|
|
640
|
+
children
|
|
641
|
+
]
|
|
642
|
+
}),
|
|
643
|
+
windowStack && windowInDOM && /*#__PURE__*/ (0, $gTuX4$reactdom.createPortal)(/*#__PURE__*/ (0, $gTuX4$reactjsxruntime.jsxs)("div", {
|
|
644
|
+
...rest,
|
|
645
|
+
ref: windowRef,
|
|
646
|
+
id: id,
|
|
647
|
+
className: [
|
|
648
|
+
(0, (/*@__PURE__*/$parcel$interopDefault($7c5fb3f6c1601913$exports))).contextWindow,
|
|
649
|
+
rest.className
|
|
650
|
+
].join(" "),
|
|
651
|
+
style: {
|
|
652
|
+
...rest.style,
|
|
653
|
+
opacity: moving ? 0.8 : windowVisible ? 1 : 0,
|
|
654
|
+
visibility: windowVisible ? "visible" : "hidden",
|
|
655
|
+
zIndex: zIndex !== null && zIndex !== void 0 ? zIndex : 1,
|
|
656
|
+
minHeight: (_rest_style_minHeight = (_rest_style = rest.style) === null || _rest_style === void 0 ? void 0 : _rest_style.minHeight) !== null && _rest_style_minHeight !== void 0 ? _rest_style_minHeight : "150px",
|
|
657
|
+
minWidth: (_rest_style_minWidth = (_rest_style1 = rest.style) === null || _rest_style1 === void 0 ? void 0 : _rest_style1.minWidth) !== null && _rest_style_minWidth !== void 0 ? _rest_style_minWidth : "200px",
|
|
658
|
+
maxHeight: (_rest_style_maxHeight = (_rest_style2 = rest.style) === null || _rest_style2 === void 0 ? void 0 : _rest_style2.maxHeight) !== null && _rest_style_maxHeight !== void 0 ? _rest_style_maxHeight : "1000px",
|
|
659
|
+
maxWidth: (_rest_style_maxWidth = (_rest_style3 = rest.style) === null || _rest_style3 === void 0 ? void 0 : _rest_style3.maxWidth) !== null && _rest_style_maxWidth !== void 0 ? _rest_style_maxWidth : "1000px"
|
|
660
|
+
},
|
|
661
|
+
onClickCapture: (e)=>{
|
|
662
|
+
windowId && windowId.current && windowStack.pushToTop(windowId.current);
|
|
663
|
+
rest.onClickCapture && rest.onClickCapture(e);
|
|
664
|
+
},
|
|
665
|
+
children: [
|
|
666
|
+
/*#__PURE__*/ (0, $gTuX4$reactjsxruntime.jsxs)("div", {
|
|
667
|
+
className: [
|
|
668
|
+
(0, (/*@__PURE__*/$parcel$interopDefault($7c5fb3f6c1601913$exports))).contextWindowTitle,
|
|
669
|
+
moving ? (0, (/*@__PURE__*/$parcel$interopDefault($7c5fb3f6c1601913$exports))).moving : ""
|
|
670
|
+
].filter((c)=>c !== "").join(" "),
|
|
671
|
+
onMouseDown: (e)=>{
|
|
672
|
+
if (e.target && (e.target instanceof HTMLElement || e.target instanceof SVGElement)) e.target.style.userSelect = "none";
|
|
673
|
+
setMoving(true);
|
|
674
|
+
windowId && windowId.current && windowStack.pushToTop(windowId.current);
|
|
675
|
+
document.addEventListener("mouseup", mouseUp);
|
|
676
|
+
document.addEventListener("mousemove", mouseMove);
|
|
677
|
+
window.addEventListener("resize", ()=>checkPosition());
|
|
678
|
+
},
|
|
679
|
+
children: [
|
|
680
|
+
/*#__PURE__*/ (0, $gTuX4$reactjsxruntime.jsx)("div", {
|
|
681
|
+
className: (0, (/*@__PURE__*/$parcel$interopDefault($7c5fb3f6c1601913$exports))).contextWindowTitleText,
|
|
682
|
+
children: title
|
|
683
|
+
}),
|
|
684
|
+
/*#__PURE__*/ (0, $gTuX4$reactjsxruntime.jsx)("div", {
|
|
685
|
+
className: (0, (/*@__PURE__*/$parcel$interopDefault($7c5fb3f6c1601913$exports))).contextWindowTitleClose,
|
|
686
|
+
children: /*#__PURE__*/ (0, $gTuX4$reactjsxruntime.jsx)("svg", {
|
|
687
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
688
|
+
width: "16",
|
|
689
|
+
height: "16",
|
|
690
|
+
fill: "currentColor",
|
|
691
|
+
viewBox: "0 0 16 16",
|
|
692
|
+
"aria-label": "Close window",
|
|
693
|
+
onClick: onClose,
|
|
694
|
+
children: /*#__PURE__*/ (0, $gTuX4$reactjsxruntime.jsx)("path", {
|
|
695
|
+
d: "M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"
|
|
696
|
+
})
|
|
685
697
|
})
|
|
686
698
|
})
|
|
699
|
+
]
|
|
700
|
+
}),
|
|
701
|
+
/*#__PURE__*/ (0, $gTuX4$reactjsxruntime.jsx)("div", {
|
|
702
|
+
className: (0, (/*@__PURE__*/$parcel$interopDefault($7c5fb3f6c1601913$exports))).contextWindowBody,
|
|
703
|
+
children: /*#__PURE__*/ (0, $gTuX4$reactjsxruntime.jsx)("div", {
|
|
704
|
+
children: children
|
|
687
705
|
})
|
|
688
|
-
]
|
|
689
|
-
}),
|
|
690
|
-
/*#__PURE__*/ (0, $gTuX4$reactjsxruntime.jsx)("div", {
|
|
691
|
-
className: (0, (/*@__PURE__*/$parcel$interopDefault($7c5fb3f6c1601913$exports))).contextWindowBody,
|
|
692
|
-
children: /*#__PURE__*/ (0, $gTuX4$reactjsxruntime.jsx)("div", {
|
|
693
|
-
children: children
|
|
694
706
|
})
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
707
|
+
]
|
|
708
|
+
}), document.body)
|
|
709
|
+
]
|
|
698
710
|
});
|
|
699
711
|
};
|
|
700
712
|
$46fb0088a1bbb6d8$export$1af8984c69ba1b24.displayName = "ContextWindow";
|