@uipath/apollo-wind 2.67.0 → 2.68.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/dist/components/forms/metadata-form.cjs +40 -44
- package/dist/components/forms/metadata-form.js +40 -44
- package/dist/components/ui/index.cjs +72 -61
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.js +1 -0
- package/dist/components/ui/json-tree-view/JsonTree.types.d.ts +26 -0
- package/dist/components/ui/json-tree-view/JsonTreeRow.cjs +13 -10
- package/dist/components/ui/json-tree-view/JsonTreeRow.js +14 -11
- package/dist/components/ui/json-tree-view/JsonTreeToolbar.cjs +22 -11
- package/dist/components/ui/json-tree-view/JsonTreeToolbar.d.ts +6 -1
- package/dist/components/ui/json-tree-view/JsonTreeToolbar.js +22 -11
- package/dist/components/ui/json-tree-view/NodeKey.cjs +4 -0
- package/dist/components/ui/json-tree-view/NodeKey.js +4 -0
- package/dist/components/ui/json-tree-view/RowActions.cjs +23 -17
- package/dist/components/ui/json-tree-view/RowActions.d.ts +4 -1
- package/dist/components/ui/json-tree-view/RowActions.js +23 -17
- package/dist/components/ui/json-tree-view/buildJsonTree.cjs +99 -44
- package/dist/components/ui/json-tree-view/buildJsonTree.d.ts +15 -2
- package/dist/components/ui/json-tree-view/buildJsonTree.js +97 -45
- package/dist/components/ui/panel-tabs.cjs +99 -0
- package/dist/components/ui/panel-tabs.d.ts +34 -0
- package/dist/components/ui/panel-tabs.js +53 -0
- package/dist/components/ui/tree-view.cjs +19 -5
- package/dist/components/ui/tree-view.js +19 -5
- package/dist/index.cjs +29 -10
- package/dist/index.d.ts +3 -1
- package/dist/index.js +3 -2
- package/dist/styles.css +33 -0
- package/package.json +1 -1
|
@@ -18,7 +18,7 @@ var __webpack_modules__ = {
|
|
|
18
18
|
"./avatar" (module) {
|
|
19
19
|
module.exports = require("./avatar.cjs");
|
|
20
20
|
},
|
|
21
|
-
"
|
|
21
|
+
"@/components/ui/badge" (module) {
|
|
22
22
|
module.exports = require("./badge.cjs");
|
|
23
23
|
},
|
|
24
24
|
"./boolean-radio-group" (module) {
|
|
@@ -33,22 +33,22 @@ var __webpack_modules__ = {
|
|
|
33
33
|
"./button-group" (module) {
|
|
34
34
|
module.exports = require("./button-group.cjs");
|
|
35
35
|
},
|
|
36
|
-
"
|
|
36
|
+
"@/components/ui/button" (module) {
|
|
37
37
|
module.exports = require("./button.cjs");
|
|
38
38
|
},
|
|
39
|
-
"
|
|
39
|
+
"@/components/ui/calendar" (module) {
|
|
40
40
|
module.exports = require("./calendar.cjs");
|
|
41
41
|
},
|
|
42
|
-
"
|
|
42
|
+
"@/components/ui/card" (module) {
|
|
43
43
|
module.exports = require("./card.cjs");
|
|
44
44
|
},
|
|
45
45
|
"./chart" (module) {
|
|
46
46
|
module.exports = require("./chart.cjs");
|
|
47
47
|
},
|
|
48
|
-
"
|
|
48
|
+
"@/components/ui/checkbox" (module) {
|
|
49
49
|
module.exports = require("./checkbox.cjs");
|
|
50
50
|
},
|
|
51
|
-
"
|
|
51
|
+
"@/components/ui/collapsible" (module) {
|
|
52
52
|
module.exports = require("./collapsible.cjs");
|
|
53
53
|
},
|
|
54
54
|
"./combobox" (module) {
|
|
@@ -57,7 +57,7 @@ var __webpack_modules__ = {
|
|
|
57
57
|
"@/components/ui/command" (module) {
|
|
58
58
|
module.exports = require("./command.cjs");
|
|
59
59
|
},
|
|
60
|
-
"
|
|
60
|
+
"@/components/ui/context-menu" (module) {
|
|
61
61
|
module.exports = require("./context-menu.cjs");
|
|
62
62
|
},
|
|
63
63
|
"./data-table" (module) {
|
|
@@ -69,16 +69,16 @@ var __webpack_modules__ = {
|
|
|
69
69
|
"./datetime-picker" (module) {
|
|
70
70
|
module.exports = require("./datetime-picker.cjs");
|
|
71
71
|
},
|
|
72
|
-
"
|
|
72
|
+
"@/components/ui/dialog" (module) {
|
|
73
73
|
module.exports = require("./dialog.cjs");
|
|
74
74
|
},
|
|
75
75
|
"./drawer" (module) {
|
|
76
76
|
module.exports = require("./drawer.cjs");
|
|
77
77
|
},
|
|
78
|
-
"
|
|
78
|
+
"@/components/ui/dropdown-menu" (module) {
|
|
79
79
|
module.exports = require("./dropdown-menu.cjs");
|
|
80
80
|
},
|
|
81
|
-
"
|
|
81
|
+
"@/components/ui/editable-cell" (module) {
|
|
82
82
|
module.exports = require("./editable-cell.cjs");
|
|
83
83
|
},
|
|
84
84
|
"./empty-state" (module) {
|
|
@@ -96,16 +96,16 @@ var __webpack_modules__ = {
|
|
|
96
96
|
"./form-field" (module) {
|
|
97
97
|
module.exports = require("./form-field.cjs");
|
|
98
98
|
},
|
|
99
|
-
"
|
|
99
|
+
"@/components/ui/hover-card" (module) {
|
|
100
100
|
module.exports = require("./hover-card.cjs");
|
|
101
101
|
},
|
|
102
|
-
"
|
|
102
|
+
"@/components/ui/info-tooltip" (module) {
|
|
103
103
|
module.exports = require("./info-tooltip.cjs");
|
|
104
104
|
},
|
|
105
105
|
"@/components/ui/input-group" (module) {
|
|
106
106
|
module.exports = require("./input-group.cjs");
|
|
107
107
|
},
|
|
108
|
-
"
|
|
108
|
+
"@/components/ui/input" (module) {
|
|
109
109
|
module.exports = require("./input.cjs");
|
|
110
110
|
},
|
|
111
111
|
"./json-tree-view" (module) {
|
|
@@ -114,7 +114,7 @@ var __webpack_modules__ = {
|
|
|
114
114
|
"./label" (module) {
|
|
115
115
|
module.exports = require("./label.cjs");
|
|
116
116
|
},
|
|
117
|
-
"
|
|
117
|
+
"@/components/ui/layout" (module) {
|
|
118
118
|
module.exports = require("./layout/index.cjs");
|
|
119
119
|
},
|
|
120
120
|
"./lockable-value-field" (module) {
|
|
@@ -138,10 +138,13 @@ var __webpack_modules__ = {
|
|
|
138
138
|
"./pagination" (module) {
|
|
139
139
|
module.exports = require("./pagination.cjs");
|
|
140
140
|
},
|
|
141
|
+
"./panel-tabs" (module) {
|
|
142
|
+
module.exports = require("./panel-tabs.cjs");
|
|
143
|
+
},
|
|
141
144
|
"@/components/ui/popover" (module) {
|
|
142
145
|
module.exports = require("./popover.cjs");
|
|
143
146
|
},
|
|
144
|
-
"
|
|
147
|
+
"@/components/ui/portal-container" (module) {
|
|
145
148
|
module.exports = require("./portal-container.cjs");
|
|
146
149
|
},
|
|
147
150
|
"./progress" (module) {
|
|
@@ -201,28 +204,28 @@ var __webpack_modules__ = {
|
|
|
201
204
|
"./switch" (module) {
|
|
202
205
|
module.exports = require("./switch.cjs");
|
|
203
206
|
},
|
|
204
|
-
"
|
|
207
|
+
"@/components/ui/table" (module) {
|
|
205
208
|
module.exports = require("./table.cjs");
|
|
206
209
|
},
|
|
207
210
|
"./tabs" (module) {
|
|
208
211
|
module.exports = require("./tabs.cjs");
|
|
209
212
|
},
|
|
210
|
-
"
|
|
213
|
+
"@/components/ui/textarea" (module) {
|
|
211
214
|
module.exports = require("./textarea.cjs");
|
|
212
215
|
},
|
|
213
216
|
"./toggle-group" (module) {
|
|
214
217
|
module.exports = require("./toggle-group.cjs");
|
|
215
218
|
},
|
|
216
|
-
"
|
|
219
|
+
"@/components/ui/toggle" (module) {
|
|
217
220
|
module.exports = require("./toggle.cjs");
|
|
218
221
|
},
|
|
219
|
-
"
|
|
222
|
+
"@/components/ui/tooltip" (module) {
|
|
220
223
|
module.exports = require("./tooltip.cjs");
|
|
221
224
|
},
|
|
222
225
|
"./tree-view" (module) {
|
|
223
226
|
module.exports = require("./tree-view.cjs");
|
|
224
227
|
},
|
|
225
|
-
"
|
|
228
|
+
"@/components/ui/variable-picker" (module) {
|
|
226
229
|
module.exports = require("./variable-picker/index.cjs");
|
|
227
230
|
},
|
|
228
231
|
"./variable-value-control" (module) {
|
|
@@ -273,8 +276,8 @@ var __webpack_exports__ = {};
|
|
|
273
276
|
(()=>{
|
|
274
277
|
__webpack_require__.r(__webpack_exports__);
|
|
275
278
|
__webpack_require__.d(__webpack_exports__, {
|
|
276
|
-
FileTreeView: ()=>
|
|
277
|
-
TreeView: ()=>
|
|
279
|
+
FileTreeView: ()=>_tree_view__rspack_import_74_default.a,
|
|
280
|
+
TreeView: ()=>_tree_view__rspack_import_74.TreeView
|
|
278
281
|
});
|
|
279
282
|
var _accordion__rspack_import_0 = __webpack_require__("./accordion");
|
|
280
283
|
var __rspack_reexport = {};
|
|
@@ -324,7 +327,7 @@ var __webpack_exports__ = {};
|
|
|
324
327
|
"TreeView"
|
|
325
328
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_avatar__rspack_import_5[__rspack_import_key];
|
|
326
329
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
327
|
-
var _badge__rspack_import_6 = __webpack_require__("
|
|
330
|
+
var _badge__rspack_import_6 = __webpack_require__("@/components/ui/badge");
|
|
328
331
|
var __rspack_reexport = {};
|
|
329
332
|
for(const __rspack_import_key in _badge__rspack_import_6)if ([
|
|
330
333
|
"default",
|
|
@@ -356,7 +359,7 @@ var __webpack_exports__ = {};
|
|
|
356
359
|
"TreeView"
|
|
357
360
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_bubble__rspack_import_9[__rspack_import_key];
|
|
358
361
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
359
|
-
var _button__rspack_import_10 = __webpack_require__("
|
|
362
|
+
var _button__rspack_import_10 = __webpack_require__("@/components/ui/button");
|
|
360
363
|
var __rspack_reexport = {};
|
|
361
364
|
for(const __rspack_import_key in _button__rspack_import_10)if ([
|
|
362
365
|
"default",
|
|
@@ -372,7 +375,7 @@ var __webpack_exports__ = {};
|
|
|
372
375
|
"TreeView"
|
|
373
376
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_button_group__rspack_import_11[__rspack_import_key];
|
|
374
377
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
375
|
-
var _calendar__rspack_import_12 = __webpack_require__("
|
|
378
|
+
var _calendar__rspack_import_12 = __webpack_require__("@/components/ui/calendar");
|
|
376
379
|
var __rspack_reexport = {};
|
|
377
380
|
for(const __rspack_import_key in _calendar__rspack_import_12)if ([
|
|
378
381
|
"default",
|
|
@@ -380,7 +383,7 @@ var __webpack_exports__ = {};
|
|
|
380
383
|
"TreeView"
|
|
381
384
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_calendar__rspack_import_12[__rspack_import_key];
|
|
382
385
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
383
|
-
var _card__rspack_import_13 = __webpack_require__("
|
|
386
|
+
var _card__rspack_import_13 = __webpack_require__("@/components/ui/card");
|
|
384
387
|
var __rspack_reexport = {};
|
|
385
388
|
for(const __rspack_import_key in _card__rspack_import_13)if ([
|
|
386
389
|
"default",
|
|
@@ -396,7 +399,7 @@ var __webpack_exports__ = {};
|
|
|
396
399
|
"TreeView"
|
|
397
400
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_chart__rspack_import_14[__rspack_import_key];
|
|
398
401
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
399
|
-
var _checkbox__rspack_import_15 = __webpack_require__("
|
|
402
|
+
var _checkbox__rspack_import_15 = __webpack_require__("@/components/ui/checkbox");
|
|
400
403
|
var __rspack_reexport = {};
|
|
401
404
|
for(const __rspack_import_key in _checkbox__rspack_import_15)if ([
|
|
402
405
|
"default",
|
|
@@ -404,7 +407,7 @@ var __webpack_exports__ = {};
|
|
|
404
407
|
"TreeView"
|
|
405
408
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_checkbox__rspack_import_15[__rspack_import_key];
|
|
406
409
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
407
|
-
var _collapsible__rspack_import_16 = __webpack_require__("
|
|
410
|
+
var _collapsible__rspack_import_16 = __webpack_require__("@/components/ui/collapsible");
|
|
408
411
|
var __rspack_reexport = {};
|
|
409
412
|
for(const __rspack_import_key in _collapsible__rspack_import_16)if ([
|
|
410
413
|
"default",
|
|
@@ -428,7 +431,7 @@ var __webpack_exports__ = {};
|
|
|
428
431
|
"TreeView"
|
|
429
432
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_command__rspack_import_18[__rspack_import_key];
|
|
430
433
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
431
|
-
var _context_menu__rspack_import_19 = __webpack_require__("
|
|
434
|
+
var _context_menu__rspack_import_19 = __webpack_require__("@/components/ui/context-menu");
|
|
432
435
|
var __rspack_reexport = {};
|
|
433
436
|
for(const __rspack_import_key in _context_menu__rspack_import_19)if ([
|
|
434
437
|
"default",
|
|
@@ -460,7 +463,7 @@ var __webpack_exports__ = {};
|
|
|
460
463
|
"TreeView"
|
|
461
464
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_datetime_picker__rspack_import_22[__rspack_import_key];
|
|
462
465
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
463
|
-
var _dialog__rspack_import_23 = __webpack_require__("
|
|
466
|
+
var _dialog__rspack_import_23 = __webpack_require__("@/components/ui/dialog");
|
|
464
467
|
var __rspack_reexport = {};
|
|
465
468
|
for(const __rspack_import_key in _dialog__rspack_import_23)if ([
|
|
466
469
|
"default",
|
|
@@ -476,7 +479,7 @@ var __webpack_exports__ = {};
|
|
|
476
479
|
"TreeView"
|
|
477
480
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_drawer__rspack_import_24[__rspack_import_key];
|
|
478
481
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
479
|
-
var _dropdown_menu__rspack_import_25 = __webpack_require__("
|
|
482
|
+
var _dropdown_menu__rspack_import_25 = __webpack_require__("@/components/ui/dropdown-menu");
|
|
480
483
|
var __rspack_reexport = {};
|
|
481
484
|
for(const __rspack_import_key in _dropdown_menu__rspack_import_25)if ([
|
|
482
485
|
"default",
|
|
@@ -484,7 +487,7 @@ var __webpack_exports__ = {};
|
|
|
484
487
|
"TreeView"
|
|
485
488
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_dropdown_menu__rspack_import_25[__rspack_import_key];
|
|
486
489
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
487
|
-
var _editable_cell__rspack_import_26 = __webpack_require__("
|
|
490
|
+
var _editable_cell__rspack_import_26 = __webpack_require__("@/components/ui/editable-cell");
|
|
488
491
|
var __rspack_reexport = {};
|
|
489
492
|
for(const __rspack_import_key in _editable_cell__rspack_import_26)if ([
|
|
490
493
|
"default",
|
|
@@ -532,7 +535,7 @@ var __webpack_exports__ = {};
|
|
|
532
535
|
"TreeView"
|
|
533
536
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_form_field__rspack_import_31[__rspack_import_key];
|
|
534
537
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
535
|
-
var _hover_card__rspack_import_32 = __webpack_require__("
|
|
538
|
+
var _hover_card__rspack_import_32 = __webpack_require__("@/components/ui/hover-card");
|
|
536
539
|
var __rspack_reexport = {};
|
|
537
540
|
for(const __rspack_import_key in _hover_card__rspack_import_32)if ([
|
|
538
541
|
"default",
|
|
@@ -540,7 +543,7 @@ var __webpack_exports__ = {};
|
|
|
540
543
|
"TreeView"
|
|
541
544
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_hover_card__rspack_import_32[__rspack_import_key];
|
|
542
545
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
543
|
-
var _info_tooltip__rspack_import_33 = __webpack_require__("
|
|
546
|
+
var _info_tooltip__rspack_import_33 = __webpack_require__("@/components/ui/info-tooltip");
|
|
544
547
|
var __rspack_reexport = {};
|
|
545
548
|
for(const __rspack_import_key in _info_tooltip__rspack_import_33)if ([
|
|
546
549
|
"default",
|
|
@@ -548,7 +551,7 @@ var __webpack_exports__ = {};
|
|
|
548
551
|
"TreeView"
|
|
549
552
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_info_tooltip__rspack_import_33[__rspack_import_key];
|
|
550
553
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
551
|
-
var _input__rspack_import_34 = __webpack_require__("
|
|
554
|
+
var _input__rspack_import_34 = __webpack_require__("@/components/ui/input");
|
|
552
555
|
var __rspack_reexport = {};
|
|
553
556
|
for(const __rspack_import_key in _input__rspack_import_34)if ([
|
|
554
557
|
"default",
|
|
@@ -580,7 +583,7 @@ var __webpack_exports__ = {};
|
|
|
580
583
|
"TreeView"
|
|
581
584
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_label__rspack_import_37[__rspack_import_key];
|
|
582
585
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
583
|
-
var _layout__rspack_import_38 = __webpack_require__("
|
|
586
|
+
var _layout__rspack_import_38 = __webpack_require__("@/components/ui/layout");
|
|
584
587
|
var __rspack_reexport = {};
|
|
585
588
|
for(const __rspack_import_key in _layout__rspack_import_38)if ([
|
|
586
589
|
"default",
|
|
@@ -652,7 +655,7 @@ var __webpack_exports__ = {};
|
|
|
652
655
|
"TreeView"
|
|
653
656
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_popover__rspack_import_46[__rspack_import_key];
|
|
654
657
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
655
|
-
var _portal_container__rspack_import_47 = __webpack_require__("
|
|
658
|
+
var _portal_container__rspack_import_47 = __webpack_require__("@/components/ui/portal-container");
|
|
656
659
|
var __rspack_reexport = {};
|
|
657
660
|
for(const __rspack_import_key in _portal_container__rspack_import_47)if ([
|
|
658
661
|
"default",
|
|
@@ -812,7 +815,7 @@ var __webpack_exports__ = {};
|
|
|
812
815
|
"TreeView"
|
|
813
816
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_switch__rspack_import_66[__rspack_import_key];
|
|
814
817
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
815
|
-
var _table__rspack_import_67 = __webpack_require__("
|
|
818
|
+
var _table__rspack_import_67 = __webpack_require__("@/components/ui/table");
|
|
816
819
|
var __rspack_reexport = {};
|
|
817
820
|
for(const __rspack_import_key in _table__rspack_import_67)if ([
|
|
818
821
|
"default",
|
|
@@ -820,63 +823,71 @@ var __webpack_exports__ = {};
|
|
|
820
823
|
"TreeView"
|
|
821
824
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_table__rspack_import_67[__rspack_import_key];
|
|
822
825
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
823
|
-
var
|
|
826
|
+
var _panel_tabs__rspack_import_68 = __webpack_require__("./panel-tabs");
|
|
827
|
+
var __rspack_reexport = {};
|
|
828
|
+
for(const __rspack_import_key in _panel_tabs__rspack_import_68)if ([
|
|
829
|
+
"default",
|
|
830
|
+
"FileTreeView",
|
|
831
|
+
"TreeView"
|
|
832
|
+
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_panel_tabs__rspack_import_68[__rspack_import_key];
|
|
833
|
+
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
834
|
+
var _tabs__rspack_import_69 = __webpack_require__("./tabs");
|
|
824
835
|
var __rspack_reexport = {};
|
|
825
|
-
for(const __rspack_import_key in
|
|
836
|
+
for(const __rspack_import_key in _tabs__rspack_import_69)if ([
|
|
826
837
|
"default",
|
|
827
838
|
"FileTreeView",
|
|
828
839
|
"TreeView"
|
|
829
|
-
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>
|
|
840
|
+
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_tabs__rspack_import_69[__rspack_import_key];
|
|
830
841
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
831
|
-
var
|
|
842
|
+
var _textarea__rspack_import_70 = __webpack_require__("@/components/ui/textarea");
|
|
832
843
|
var __rspack_reexport = {};
|
|
833
|
-
for(const __rspack_import_key in
|
|
844
|
+
for(const __rspack_import_key in _textarea__rspack_import_70)if ([
|
|
834
845
|
"default",
|
|
835
846
|
"FileTreeView",
|
|
836
847
|
"TreeView"
|
|
837
|
-
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>
|
|
848
|
+
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_textarea__rspack_import_70[__rspack_import_key];
|
|
838
849
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
839
|
-
var
|
|
850
|
+
var _toggle__rspack_import_71 = __webpack_require__("@/components/ui/toggle");
|
|
840
851
|
var __rspack_reexport = {};
|
|
841
|
-
for(const __rspack_import_key in
|
|
852
|
+
for(const __rspack_import_key in _toggle__rspack_import_71)if ([
|
|
842
853
|
"default",
|
|
843
854
|
"FileTreeView",
|
|
844
855
|
"TreeView"
|
|
845
|
-
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>
|
|
856
|
+
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_toggle__rspack_import_71[__rspack_import_key];
|
|
846
857
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
847
|
-
var
|
|
858
|
+
var _toggle_group__rspack_import_72 = __webpack_require__("./toggle-group");
|
|
848
859
|
var __rspack_reexport = {};
|
|
849
|
-
for(const __rspack_import_key in
|
|
860
|
+
for(const __rspack_import_key in _toggle_group__rspack_import_72)if ([
|
|
850
861
|
"default",
|
|
851
862
|
"FileTreeView",
|
|
852
863
|
"TreeView"
|
|
853
|
-
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>
|
|
864
|
+
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_toggle_group__rspack_import_72[__rspack_import_key];
|
|
854
865
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
855
|
-
var
|
|
866
|
+
var _tooltip__rspack_import_73 = __webpack_require__("@/components/ui/tooltip");
|
|
856
867
|
var __rspack_reexport = {};
|
|
857
|
-
for(const __rspack_import_key in
|
|
868
|
+
for(const __rspack_import_key in _tooltip__rspack_import_73)if ([
|
|
858
869
|
"default",
|
|
859
870
|
"FileTreeView",
|
|
860
871
|
"TreeView"
|
|
861
|
-
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>
|
|
872
|
+
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_tooltip__rspack_import_73[__rspack_import_key];
|
|
862
873
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
863
|
-
var
|
|
864
|
-
var
|
|
865
|
-
var
|
|
874
|
+
var _tree_view__rspack_import_74 = __webpack_require__("./tree-view");
|
|
875
|
+
var _tree_view__rspack_import_74_default = /*#__PURE__*/ __webpack_require__.n(_tree_view__rspack_import_74);
|
|
876
|
+
var _variable_picker__rspack_import_75 = __webpack_require__("@/components/ui/variable-picker");
|
|
866
877
|
var __rspack_reexport = {};
|
|
867
|
-
for(const __rspack_import_key in
|
|
878
|
+
for(const __rspack_import_key in _variable_picker__rspack_import_75)if ([
|
|
868
879
|
"default",
|
|
869
880
|
"FileTreeView",
|
|
870
881
|
"TreeView"
|
|
871
|
-
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>
|
|
882
|
+
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_variable_picker__rspack_import_75[__rspack_import_key];
|
|
872
883
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
873
|
-
var
|
|
884
|
+
var _variable_value_control__rspack_import_76 = __webpack_require__("./variable-value-control");
|
|
874
885
|
var __rspack_reexport = {};
|
|
875
|
-
for(const __rspack_import_key in
|
|
886
|
+
for(const __rspack_import_key in _variable_value_control__rspack_import_76)if ([
|
|
876
887
|
"default",
|
|
877
888
|
"FileTreeView",
|
|
878
889
|
"TreeView"
|
|
879
|
-
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>
|
|
890
|
+
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_variable_value_control__rspack_import_76[__rspack_import_key];
|
|
880
891
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
881
892
|
})();
|
|
882
893
|
exports.FileTreeView = __webpack_exports__.FileTreeView;
|
|
@@ -127,6 +127,11 @@ export interface NodeDecoration {
|
|
|
127
127
|
label?: string;
|
|
128
128
|
/** Small muted text after the key label (e.g. an identifier). */
|
|
129
129
|
sublabel?: string;
|
|
130
|
+
/**
|
|
131
|
+
* Shows the sublabel only while the row is hovered or holds focus. It sits
|
|
132
|
+
* in the row's flexible space, so revealing it never moves the trailing cluster.
|
|
133
|
+
*/
|
|
134
|
+
sublabelOnHover?: boolean;
|
|
130
135
|
/** Replaces the type badge's icon and/or color. */
|
|
131
136
|
badge?: NodeDecorationBadge;
|
|
132
137
|
/** Small pill rendered next to the key (e.g. "mocked"). */
|
|
@@ -135,6 +140,17 @@ export interface NodeDecoration {
|
|
|
135
140
|
* Hides the built-in keys/items count on a container row.
|
|
136
141
|
*/
|
|
137
142
|
hideCount?: boolean;
|
|
143
|
+
/**
|
|
144
|
+
* Hides the value cell on a scalar row, for a row that names something
|
|
145
|
+
* (e.g. a node with no output yet) rather than holding a value.
|
|
146
|
+
*/
|
|
147
|
+
hideValue?: boolean;
|
|
148
|
+
/**
|
|
149
|
+
* Content in the row's trailing cluster, between the `start` and `end`
|
|
150
|
+
* actions (e.g. a count). The cluster never shrinks, so it stays in place
|
|
151
|
+
* while the key and sublabel truncate.
|
|
152
|
+
*/
|
|
153
|
+
meta?: ReactNode;
|
|
138
154
|
}
|
|
139
155
|
/** Context passed to a custom value cell renderer. */
|
|
140
156
|
export interface RenderValueContext {
|
|
@@ -176,6 +192,16 @@ export interface NodeAction {
|
|
|
176
192
|
disabled?: boolean;
|
|
177
193
|
/** Color tone; `error` tints a destructive action. Defaults to neutral. */
|
|
178
194
|
tone?: NodeDecorationTone;
|
|
195
|
+
/**
|
|
196
|
+
* Keeps the action visible at rest instead of revealing it on row hover.
|
|
197
|
+
* For a row's primary action. Ignored once actions collapse into the menu.
|
|
198
|
+
*/
|
|
199
|
+
persistent?: boolean;
|
|
200
|
+
/**
|
|
201
|
+
* Where the action sits in the row's trailing cluster: `start` renders it
|
|
202
|
+
* before the decoration `meta`, `end` (the default) after it.
|
|
203
|
+
*/
|
|
204
|
+
placement?: 'start' | 'end';
|
|
179
205
|
}
|
|
180
206
|
/** Context passed to `nodeActions`, mirroring the value-cell edit context. */
|
|
181
207
|
export interface NodeActionContext {
|
|
@@ -42,12 +42,12 @@ const external_JsonTypeBadge_cjs_namespaceObject = require("./JsonTypeBadge.cjs"
|
|
|
42
42
|
const external_NodeKey_cjs_namespaceObject = require("./NodeKey.cjs");
|
|
43
43
|
const external_RowActions_cjs_namespaceObject = require("./RowActions.cjs");
|
|
44
44
|
const external_ScalarValueCell_cjs_namespaceObject = require("./ScalarValueCell.cjs");
|
|
45
|
-
const ROW_CLASS = 'group flex min-h-7 cursor-default items-center gap-
|
|
45
|
+
const ROW_CLASS = 'group flex min-h-7 cursor-default items-center gap-2 py-1 pr-1 transition hover:bg-surface-overlay';
|
|
46
46
|
const ROW_MIN_HEIGHT_PX = 28;
|
|
47
47
|
const VALUE_CELL_CLASS = 'flex min-w-8 flex-1 items-center';
|
|
48
48
|
function rowIndent(depth, extra = 0) {
|
|
49
49
|
return {
|
|
50
|
-
paddingLeft: `${
|
|
50
|
+
paddingLeft: `${8 + 16 * depth + extra}px`
|
|
51
51
|
};
|
|
52
52
|
}
|
|
53
53
|
const KEY_ALIGN_OFFSET = 44;
|
|
@@ -138,12 +138,13 @@ function JsonTreeRow({ node, depth }) {
|
|
|
138
138
|
isContainer ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("button", {
|
|
139
139
|
type: "button",
|
|
140
140
|
onClick: ()=>onToggleCollapsed?.(node.path),
|
|
141
|
-
|
|
142
|
-
"aria-
|
|
143
|
-
|
|
141
|
+
disabled: !onToggleCollapsed,
|
|
142
|
+
"aria-label": (0, external_buildJsonTree_cjs_namespaceObject.isPathCollapsed)(collapsed, node.path) ? strings.expandKey(node.key) : strings.collapseKey(node.key),
|
|
143
|
+
"aria-expanded": !(0, external_buildJsonTree_cjs_namespaceObject.isPathCollapsed)(collapsed, node.path),
|
|
144
|
+
className: "grid size-2.5 shrink-0 cursor-pointer place-items-center text-foreground-subtle transition hover:text-foreground disabled:cursor-default disabled:hover:text-foreground-subtle",
|
|
144
145
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.ChevronDown, {
|
|
145
146
|
size: 10,
|
|
146
|
-
className: (0, index_cjs_namespaceObject.cn)('transition-transform duration-100', collapsed
|
|
147
|
+
className: (0, index_cjs_namespaceObject.cn)('transition-transform duration-100', (0, external_buildJsonTree_cjs_namespaceObject.isPathCollapsed)(collapsed, node.path) && '-rotate-90')
|
|
147
148
|
})
|
|
148
149
|
}) : /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
149
150
|
className: "size-2.5 shrink-0"
|
|
@@ -168,7 +169,7 @@ function JsonTreeRow({ node, depth }) {
|
|
|
168
169
|
"aria-label": strings.pathCopied
|
|
169
170
|
}),
|
|
170
171
|
decoration?.sublabel && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
171
|
-
className:
|
|
172
|
+
className: (0, index_cjs_namespaceObject.cn)('min-w-0 truncate font-mono text-[10px] text-foreground-subtle leading-4', decoration.sublabelOnHover && 'hidden group-hover:block group-focus-within:block'),
|
|
172
173
|
children: decoration.sublabel
|
|
173
174
|
}),
|
|
174
175
|
node.required && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_label_cjs_namespaceObject.RequiredIndicator, {
|
|
@@ -191,12 +192,13 @@ function JsonTreeRow({ node, depth }) {
|
|
|
191
192
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_RowActions_cjs_namespaceObject.RowActions, {
|
|
192
193
|
node: node,
|
|
193
194
|
actions: actions,
|
|
194
|
-
maxInline: maxInlineActions
|
|
195
|
+
maxInline: maxInlineActions,
|
|
196
|
+
meta: decoration?.meta
|
|
195
197
|
})
|
|
196
198
|
]
|
|
197
199
|
}) : /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment, {
|
|
198
200
|
children: [
|
|
199
|
-
!wrapped && (null != customCell ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
201
|
+
!wrapped && !decoration?.hideValue && (null != customCell ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
200
202
|
className: VALUE_CELL_CLASS,
|
|
201
203
|
children: customCell
|
|
202
204
|
}) : !(readOnly && void 0 === node.value || isTemplate) && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment, {
|
|
@@ -226,7 +228,8 @@ function JsonTreeRow({ node, depth }) {
|
|
|
226
228
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_RowActions_cjs_namespaceObject.RowActions, {
|
|
227
229
|
node: node,
|
|
228
230
|
actions: actions,
|
|
229
|
-
maxInline: maxInlineActions
|
|
231
|
+
maxInline: maxInlineActions,
|
|
232
|
+
meta: decoration?.meta
|
|
230
233
|
})
|
|
231
234
|
]
|
|
232
235
|
})
|
|
@@ -4,7 +4,7 @@ import { RequiredIndicator } from "../label.js";
|
|
|
4
4
|
import { ChevronDown, CircleCheck, Copy, Pencil, WrapText } from "lucide-react";
|
|
5
5
|
import { createContext, useContext } from "react";
|
|
6
6
|
import { useJsonTreeViewStrings } from "./strings.js";
|
|
7
|
-
import { formatLeafValue, isArrayItemTemplateRoot } from "./buildJsonTree.js";
|
|
7
|
+
import { formatLeafValue, isArrayItemTemplateRoot, isPathCollapsed } from "./buildJsonTree.js";
|
|
8
8
|
import { DecorationChip } from "./DecorationChip.js";
|
|
9
9
|
import { JsonContainerEditor } from "./JsonContainerEditor.js";
|
|
10
10
|
import { JsonMultilineLeafEditor } from "./JsonMultilineLeafEditor.js";
|
|
@@ -12,12 +12,12 @@ import { JsonTypeBadge } from "./JsonTypeBadge.js";
|
|
|
12
12
|
import { NodeKey } from "./NodeKey.js";
|
|
13
13
|
import { RowActions } from "./RowActions.js";
|
|
14
14
|
import { ScalarValueCell, valueColorClass } from "./ScalarValueCell.js";
|
|
15
|
-
const ROW_CLASS = 'group flex min-h-7 cursor-default items-center gap-
|
|
15
|
+
const ROW_CLASS = 'group flex min-h-7 cursor-default items-center gap-2 py-1 pr-1 transition hover:bg-surface-overlay';
|
|
16
16
|
const ROW_MIN_HEIGHT_PX = 28;
|
|
17
17
|
const VALUE_CELL_CLASS = 'flex min-w-8 flex-1 items-center';
|
|
18
18
|
function rowIndent(depth, extra = 0) {
|
|
19
19
|
return {
|
|
20
|
-
paddingLeft: `${
|
|
20
|
+
paddingLeft: `${8 + 16 * depth + extra}px`
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
23
|
const KEY_ALIGN_OFFSET = 44;
|
|
@@ -108,12 +108,13 @@ function JsonTreeRow({ node, depth }) {
|
|
|
108
108
|
isContainer ? /*#__PURE__*/ jsx("button", {
|
|
109
109
|
type: "button",
|
|
110
110
|
onClick: ()=>onToggleCollapsed?.(node.path),
|
|
111
|
-
|
|
112
|
-
"aria-
|
|
113
|
-
|
|
111
|
+
disabled: !onToggleCollapsed,
|
|
112
|
+
"aria-label": isPathCollapsed(collapsed, node.path) ? strings.expandKey(node.key) : strings.collapseKey(node.key),
|
|
113
|
+
"aria-expanded": !isPathCollapsed(collapsed, node.path),
|
|
114
|
+
className: "grid size-2.5 shrink-0 cursor-pointer place-items-center text-foreground-subtle transition hover:text-foreground disabled:cursor-default disabled:hover:text-foreground-subtle",
|
|
114
115
|
children: /*#__PURE__*/ jsx(ChevronDown, {
|
|
115
116
|
size: 10,
|
|
116
|
-
className: cn('transition-transform duration-100', collapsed
|
|
117
|
+
className: cn('transition-transform duration-100', isPathCollapsed(collapsed, node.path) && '-rotate-90')
|
|
117
118
|
})
|
|
118
119
|
}) : /*#__PURE__*/ jsx("div", {
|
|
119
120
|
className: "size-2.5 shrink-0"
|
|
@@ -138,7 +139,7 @@ function JsonTreeRow({ node, depth }) {
|
|
|
138
139
|
"aria-label": strings.pathCopied
|
|
139
140
|
}),
|
|
140
141
|
decoration?.sublabel && /*#__PURE__*/ jsx("span", {
|
|
141
|
-
className:
|
|
142
|
+
className: cn('min-w-0 truncate font-mono text-[10px] text-foreground-subtle leading-4', decoration.sublabelOnHover && 'hidden group-hover:block group-focus-within:block'),
|
|
142
143
|
children: decoration.sublabel
|
|
143
144
|
}),
|
|
144
145
|
node.required && /*#__PURE__*/ jsx(RequiredIndicator, {
|
|
@@ -161,12 +162,13 @@ function JsonTreeRow({ node, depth }) {
|
|
|
161
162
|
/*#__PURE__*/ jsx(RowActions, {
|
|
162
163
|
node: node,
|
|
163
164
|
actions: actions,
|
|
164
|
-
maxInline: maxInlineActions
|
|
165
|
+
maxInline: maxInlineActions,
|
|
166
|
+
meta: decoration?.meta
|
|
165
167
|
})
|
|
166
168
|
]
|
|
167
169
|
}) : /*#__PURE__*/ jsxs(Fragment, {
|
|
168
170
|
children: [
|
|
169
|
-
!wrapped && (null != customCell ? /*#__PURE__*/ jsx("span", {
|
|
171
|
+
!wrapped && !decoration?.hideValue && (null != customCell ? /*#__PURE__*/ jsx("span", {
|
|
170
172
|
className: VALUE_CELL_CLASS,
|
|
171
173
|
children: customCell
|
|
172
174
|
}) : !(readOnly && void 0 === node.value || isTemplate) && /*#__PURE__*/ jsxs(Fragment, {
|
|
@@ -196,7 +198,8 @@ function JsonTreeRow({ node, depth }) {
|
|
|
196
198
|
/*#__PURE__*/ jsx(RowActions, {
|
|
197
199
|
node: node,
|
|
198
200
|
actions: actions,
|
|
199
|
-
maxInline: maxInlineActions
|
|
201
|
+
maxInline: maxInlineActions,
|
|
202
|
+
meta: decoration?.meta
|
|
200
203
|
})
|
|
201
204
|
]
|
|
202
205
|
})
|