@stonecrop/desktop 0.30.0 → 0.32.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.
package/README.md CHANGED
@@ -154,7 +154,7 @@ route-follow, which need the id you dispatched.
154
154
  Do not copy form data into HST before dispatching. Desktop already hands you the current form
155
155
  snapshot in `payload.data`, and an unsaved record has no HST node to write to.
156
156
 
157
- See the [host integration guide](../docs/guides/desktop-integration.md) for the full wiring.
157
+ See the [host integration guide](../nuxt/documentation/content/guides/desktop-integration.md) for the full wiring.
158
158
 
159
159
  ## Provide / Inject
160
160
 
@@ -0,0 +1,394 @@
1
+
2
+ #cross[data-v-8e18f635] {
3
+ position: relative;
4
+ transform: rotate(45deg);
5
+ cursor: pointer;
6
+ transition: all 0.2s ease-in-out;
7
+ user-select: none;
8
+ line-height: 1rem;
9
+ }
10
+ #cross.rotated[data-v-8e18f635],
11
+ .cross.rotated[data-v-8e18f635] {
12
+ transform: rotate(0deg);
13
+ }
14
+ #cross svg[data-v-8e18f635] {
15
+ width: 1.5em;
16
+ height: 1.5em;
17
+ }
18
+ .action-set[data-v-8e18f635] {
19
+ position: fixed;
20
+ top: 300px;
21
+ right: 10px;
22
+ padding: 10px;
23
+ display: flex;
24
+ flex-direction: column;
25
+ align-items: flex-end;
26
+ background: var(--sc-form-background);
27
+ border: 1px solid var(--sc-gray-20);
28
+ border-left: 4px solid var(--sc-gray-20);
29
+ border-radius: 0;
30
+ overflow: hidden;
31
+ z-index: 1001; /* Above SheetNav (100) and operation log button (999) */
32
+ -webkit-transition: all 0.5s ease-in-out;
33
+ -moz-transition: all 0.5s ease-in-out;
34
+ -o-transition: all 0.5s ease-in-out;
35
+ transition: all 0.5s ease-in-out;
36
+ }
37
+ .action-menu-icon[data-v-8e18f635] {
38
+ position: relative;
39
+ font-size: 2rem;
40
+ display: inline-block;
41
+ color: var(--sc-gray-60);
42
+ transition: all 0.2s ease-in-out;
43
+ }
44
+ .action-set.collapsed[data-v-8e18f635] {
45
+ max-width: 46px;
46
+ max-height: 40px;
47
+ overflow: hidden;
48
+ }
49
+ .action-set.collapsed .action-element[data-v-8e18f635] {
50
+ opacity: 0;
51
+ -webkit-transition: opacity 0.25s ease-in-out;
52
+ -moz-transition: opacity 0.25s ease-in-out;
53
+ -o-transition: opacity 0.25s ease-in-out;
54
+ transition: opacity 0.25s ease-in-out;
55
+ }
56
+ .action-element[data-v-8e18f635] {
57
+ width: 100%;
58
+ text-align: right;
59
+ border: 1px solid var(--sc-gray-20);
60
+ background: none;
61
+ font-size: 1.5rem;
62
+ font-family: var(--sc-font-family);
63
+ font-weight: 600;
64
+ margin-top: 10px;
65
+ position: relative; /* Make this the positioning context for absolute children */
66
+ }
67
+ .action-element-header[data-v-8e18f635] {
68
+ display: flex;
69
+ justify-content: end;
70
+ }
71
+ button.button-default[data-v-8e18f635] {
72
+ background-color: transparent;
73
+ padding: 5px 12px;
74
+ border-radius: 0px;
75
+ box-shadow: none;
76
+ border: none;
77
+ cursor: pointer;
78
+ white-space: nowrap;
79
+ font-weight: bold;
80
+ font-size: 1rem;
81
+ text-align: right;
82
+ color: var(--sc-gray-80);
83
+ padding-left: 50px;
84
+ font-family: var(--sc-font-family);
85
+ }
86
+ .dropdown-header:hover button.button-default[data-v-8e18f635],
87
+ .dropdown-header[data-v-8e18f635]:hover,
88
+ .action-element-header[data-v-8e18f635]:hover {
89
+ background-color: #f2f2f2;
90
+ }
91
+ .dropdown-title[data-v-8e18f635] {
92
+ position: relative;
93
+ }
94
+ .dropdown-header[data-v-8e18f635] {
95
+ display: flex;
96
+ align-items: center;
97
+ }
98
+ .cross[data-v-8e18f635] {
99
+ pointer-events: all;
100
+ margin-left: 5px;
101
+ font-family: var(--sc-font-family);
102
+ color: var(--sc-gray-60);
103
+ cursor: pointer;
104
+ transform: rotate(45deg);
105
+ user-select: none;
106
+ transition: all 0.2s ease-in-out;
107
+ line-height: 1rem;
108
+ }
109
+ button.dropdown-item[data-v-8e18f635] {
110
+ width: 100%;
111
+ padding: 5px 12px;
112
+ text-align: right;
113
+ border: none;
114
+ background-color: #ffffff;
115
+ cursor: pointer;
116
+ border-radius: 5px;
117
+ font-size: 1rem;
118
+ }
119
+ button.dropdown-item[data-v-8e18f635]:hover {
120
+ background-color: #f2f2f2;
121
+ }
122
+
123
+ .fade-enter-active,
124
+ .fade-leave-active {
125
+ transition: opacity 0.2s ease;
126
+ }
127
+ .fade-enter-from,
128
+ .fade-leave-to {
129
+ opacity: 0;
130
+ }
131
+ .command-palette-overlay {
132
+ position: fixed;
133
+ top: 0;
134
+ left: 0;
135
+ width: 100%;
136
+ height: 100%;
137
+ background-color: rgba(0, 0, 0, 0.5);
138
+ display: flex;
139
+ align-items: flex-start;
140
+ justify-content: center;
141
+ z-index: 300;
142
+ padding-top: 100px;
143
+ }
144
+ .command-palette {
145
+ width: 600px;
146
+ max-width: 90%;
147
+ background-color: white;
148
+ border-radius: 8px;
149
+ box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
150
+ overflow: hidden;
151
+ max-height: 80vh;
152
+ display: flex;
153
+ flex-direction: column;
154
+ }
155
+ .command-palette-header {
156
+ display: flex;
157
+ border-bottom: 1px solid #eaeaea;
158
+ padding: 12px;
159
+ }
160
+ .command-palette-input {
161
+ flex: 1;
162
+ border: none;
163
+ outline: none;
164
+ font-size: 16px;
165
+ padding: 8px 12px;
166
+ background-color: transparent;
167
+ }
168
+ .command-palette-close {
169
+ background: transparent;
170
+ border: none;
171
+ font-size: 24px;
172
+ cursor: pointer;
173
+ color: #666;
174
+ padding: 0 8px;
175
+ }
176
+ .command-palette-close:hover {
177
+ color: #333;
178
+ }
179
+ .command-palette-results {
180
+ overflow-y: auto;
181
+ max-height: 60vh;
182
+ }
183
+ .command-palette-result {
184
+ padding: 12px 16px;
185
+ cursor: pointer;
186
+ border-bottom: 1px solid #f0f0f0;
187
+ }
188
+ .command-palette-result:hover,
189
+ .command-palette-result.selected {
190
+ background-color: #f5f5f5;
191
+ }
192
+ .command-palette-result.selected {
193
+ background-color: rgba(132, 60, 3, 0.1);
194
+ }
195
+ .result-title {
196
+ font-weight: 500;
197
+ margin-bottom: 4px;
198
+ color: #333;
199
+ }
200
+ .result-content {
201
+ font-size: 14px;
202
+ color: #666;
203
+ white-space: nowrap;
204
+ overflow: hidden;
205
+ text-overflow: ellipsis;
206
+ }
207
+ .command-palette-no-results {
208
+ padding: 20px 16px;
209
+ text-align: center;
210
+ color: #666;
211
+ }
212
+
213
+ footer[data-v-cd118b06] {
214
+ position: fixed;
215
+ bottom: 0px;
216
+ width: 100%;
217
+ background-color: transparent;
218
+ height: auto;
219
+ min-height: 2.4rem;
220
+ z-index: 100;
221
+ text-align: left;
222
+ font-size: 100%;
223
+ display: flex;
224
+ justify-content: right;
225
+ padding: 0 0.75rem 0 0;
226
+ box-sizing: border-box;
227
+ }
228
+ ul[data-v-cd118b06] {
229
+ display: flex;
230
+ flex-direction: row-reverse;
231
+ margin: 0;
232
+ padding: 0;
233
+ list-style: none;
234
+ }
235
+ .tabs li[data-v-cd118b06] {
236
+ float: left;
237
+ list-style-type: none;
238
+ position: relative;
239
+ margin-left: -1px;
240
+ }
241
+
242
+ /* Base tab styling */
243
+ .tabs a[data-v-cd118b06] {
244
+ float: left;
245
+ padding: 0.5rem 1rem;
246
+ height: 2.4rem;
247
+ box-sizing: border-box;
248
+ display: flex;
249
+ align-items: center;
250
+ justify-content: center;
251
+ text-decoration: none;
252
+ color: var(--sc-gray-60);
253
+ background: var(--sc-btn-color);
254
+ border: 1px solid var(--sc-btn-border);
255
+ font-size: 0.85rem;
256
+ font-family: var(--sc-font-family);
257
+ transition: all 0.15s ease;
258
+
259
+ /* Minimal ornamentation - subtle top radius only */
260
+ border-top-left-radius: 2px;
261
+ border-top-right-radius: 2px;
262
+ }
263
+ .tabs a[data-v-cd118b06]:hover {
264
+ background: var(--sc-btn-hover);
265
+ }
266
+ .tabs .router-link-active[data-v-cd118b06] {
267
+ z-index: 3;
268
+ background: var(--sc-primary-color) !important;
269
+ border-color: var(--sc-primary-color) !important;
270
+ color: var(--sc-primary-text-color) !important;
271
+ }
272
+
273
+ /* Pseudo-elements removed - minimal ornamentation style */
274
+
275
+ /* Hide breadcrumbs tab */
276
+ .hidebreadcrumbs a[data-v-cd118b06] {
277
+ min-width: 2.4rem;
278
+ width: 2.4rem;
279
+ height: 2.4rem;
280
+ padding: 0.5rem;
281
+ background: var(--sc-btn-color);
282
+ border: 1px solid var(--sc-btn-border);
283
+ color: var(--sc-gray-60);
284
+ }
285
+ .hidebreadcrumbs a div[data-v-cd118b06] {
286
+ font-size: 1.2rem;
287
+ }
288
+ .rotated[data-v-cd118b06] {
289
+ transform: rotate(45deg);
290
+ -webkit-transform: rotate(45deg);
291
+ -moz-transform: rotate(45deg);
292
+ -ms-transform: rotate(45deg);
293
+ -o-transform: rotate(45deg);
294
+ transition: transform 250ms ease;
295
+ }
296
+ .unrotated[data-v-cd118b06] {
297
+ transform: rotate(0deg);
298
+ -webkit-transform: rotate(0deg);
299
+ -moz-transform: rotate(0deg);
300
+ -ms-transform: rotate(0deg);
301
+ -o-transform: rotate(0deg);
302
+ transition: transform 250ms ease;
303
+ }
304
+ li[data-v-cd118b06]:active,
305
+ li[data-v-cd118b06]:hover,
306
+ li[data-v-cd118b06]:focus,
307
+ li > a[data-v-cd118b06]:active,
308
+ li > a[data-v-cd118b06]:hover,
309
+ li > a[data-v-cd118b06]:focus {
310
+ z-index: 3;
311
+ }
312
+ a[data-v-cd118b06]:active,
313
+ a[data-v-cd118b06]:hover,
314
+ a[data-v-cd118b06]:focus {
315
+ outline: 2px solid var(--sc-input-active-border-color);
316
+ z-index: 3;
317
+ }
318
+
319
+ /* Home tab */
320
+ .hometab a[data-v-cd118b06] {
321
+ min-width: 2.4rem;
322
+ width: 2.4rem;
323
+ height: 2.4rem;
324
+ padding: 0.5rem;
325
+ background: var(--sc-btn-color);
326
+ border: 1px solid var(--sc-btn-border);
327
+ color: var(--sc-gray-60);
328
+ }
329
+
330
+ /* SVG icon styling */
331
+ .icon[data-v-cd118b06] {
332
+ width: 1rem;
333
+ height: 1rem;
334
+ stroke: currentColor;
335
+ flex-shrink: 0;
336
+ }
337
+
338
+ /* Search tab with animation */
339
+ .searchtab[data-v-cd118b06] {
340
+ overflow: hidden;
341
+ }
342
+ .searchtab a[data-v-cd118b06] {
343
+ min-width: 2.4rem;
344
+ height: 2.4rem;
345
+ padding: 0.5rem;
346
+ background: var(--sc-btn-color);
347
+ border: 1px solid var(--sc-btn-border);
348
+ color: var(--sc-gray-60);
349
+ overflow: hidden;
350
+ /* Animation for smooth expand/collapse */
351
+ max-width: 2.4rem;
352
+ transition:
353
+ max-width 0.35s ease-in-out,
354
+ padding 0.35s ease-in-out,
355
+ background 0.2s ease;
356
+ }
357
+ .searchtab .search-icon[data-v-cd118b06] {
358
+ cursor: pointer;
359
+ }
360
+ .searchtab input[data-v-cd118b06] {
361
+ outline: none;
362
+ border: 1px solid var(--sc-input-border-color);
363
+ border-radius: 0.25rem;
364
+ background-color: var(--sc-form-background);
365
+ color: var(--sc-gray-80);
366
+ text-align: left;
367
+ font-size: 0.875rem;
368
+ padding: 0.25rem 0.5rem;
369
+ width: 180px;
370
+ height: 1.5rem;
371
+ flex-shrink: 0;
372
+ opacity: 0;
373
+ transition: opacity 0.2s ease-in-out;
374
+ transition-delay: 0s;
375
+ }
376
+ .searchtab input[data-v-cd118b06]:focus {
377
+ border-color: var(--sc-input-active-border-color);
378
+ outline: none;
379
+ }
380
+ .searchtab input[data-v-cd118b06]::placeholder {
381
+ color: var(--sc-input-label-color);
382
+ }
383
+
384
+ /* Search active state - expanded with animation */
385
+ .searchtab.search-active a[data-v-cd118b06] {
386
+ max-width: 200px;
387
+ min-width: auto;
388
+ width: auto;
389
+ padding: 0.5rem 0.75rem;
390
+ }
391
+ .searchtab.search-active input[data-v-cd118b06] {
392
+ opacity: 1;
393
+ transition-delay: 0.15s;
394
+ }