@uipath/apollo-wind 2.96.0 → 2.96.2
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/ui/index.cjs +38 -38
- package/dist/components/ui/json-tree-view/JsonTree.cjs +1 -2
- package/dist/components/ui/json-tree-view/JsonTree.js +1 -2
- package/dist/components/ui/json-tree-view/JsonTree.types.d.ts +2 -3
- package/dist/components/ui/json-tree-view/JsonTreeRow.cjs +10 -10
- package/dist/components/ui/json-tree-view/JsonTreeRow.js +10 -10
- package/dist/components/ui/json-tree-view/treeGrid.cjs +1 -3
- package/dist/components/ui/json-tree-view/treeGrid.js +1 -3
- package/dist/styles.css +0 -9
- 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
|
+
"./badge" (module) {
|
|
22
22
|
module.exports = require("./badge.cjs");
|
|
23
23
|
},
|
|
24
24
|
"./boolean-radio-group" (module) {
|
|
@@ -39,10 +39,10 @@ var __webpack_modules__ = {
|
|
|
39
39
|
"./byo-model-dialog" (module) {
|
|
40
40
|
module.exports = require("./byo-model-dialog/index.cjs");
|
|
41
41
|
},
|
|
42
|
-
"
|
|
42
|
+
"./calendar" (module) {
|
|
43
43
|
module.exports = require("./calendar.cjs");
|
|
44
44
|
},
|
|
45
|
-
"
|
|
45
|
+
"./card" (module) {
|
|
46
46
|
module.exports = require("./card.cjs");
|
|
47
47
|
},
|
|
48
48
|
"./chart" (module) {
|
|
@@ -54,13 +54,13 @@ var __webpack_modules__ = {
|
|
|
54
54
|
"./chat-hero" (module) {
|
|
55
55
|
module.exports = require("./chat-hero.cjs");
|
|
56
56
|
},
|
|
57
|
-
"
|
|
57
|
+
"./checkbox" (module) {
|
|
58
58
|
module.exports = require("./checkbox.cjs");
|
|
59
59
|
},
|
|
60
60
|
"./citation" (module) {
|
|
61
61
|
module.exports = require("./citation.cjs");
|
|
62
62
|
},
|
|
63
|
-
"
|
|
63
|
+
"./code-block" (module) {
|
|
64
64
|
module.exports = require("./code-block.cjs");
|
|
65
65
|
},
|
|
66
66
|
"./collapsible" (module) {
|
|
@@ -69,7 +69,7 @@ var __webpack_modules__ = {
|
|
|
69
69
|
"./combobox" (module) {
|
|
70
70
|
module.exports = require("./combobox.cjs");
|
|
71
71
|
},
|
|
72
|
-
"
|
|
72
|
+
"./command" (module) {
|
|
73
73
|
module.exports = require("./command.cjs");
|
|
74
74
|
},
|
|
75
75
|
"./conditions-editor" (module) {
|
|
@@ -132,22 +132,22 @@ var __webpack_modules__ = {
|
|
|
132
132
|
"./hover-card" (module) {
|
|
133
133
|
module.exports = require("./hover-card.cjs");
|
|
134
134
|
},
|
|
135
|
-
"
|
|
135
|
+
"./info-tooltip" (module) {
|
|
136
136
|
module.exports = require("./info-tooltip.cjs");
|
|
137
137
|
},
|
|
138
|
-
"
|
|
138
|
+
"./input-group" (module) {
|
|
139
139
|
module.exports = require("./input-group.cjs");
|
|
140
140
|
},
|
|
141
|
-
"
|
|
141
|
+
"./input" (module) {
|
|
142
142
|
module.exports = require("./input.cjs");
|
|
143
143
|
},
|
|
144
144
|
"./json-tree-view" (module) {
|
|
145
145
|
module.exports = require("./json-tree-view/index.cjs");
|
|
146
146
|
},
|
|
147
|
-
"
|
|
147
|
+
"./label" (module) {
|
|
148
148
|
module.exports = require("./label.cjs");
|
|
149
149
|
},
|
|
150
|
-
"
|
|
150
|
+
"./layout" (module) {
|
|
151
151
|
module.exports = require("./layout/index.cjs");
|
|
152
152
|
},
|
|
153
153
|
"./live-region" (module) {
|
|
@@ -192,10 +192,10 @@ var __webpack_modules__ = {
|
|
|
192
192
|
"./password-input" (module) {
|
|
193
193
|
module.exports = require("./password-input.cjs");
|
|
194
194
|
},
|
|
195
|
-
"
|
|
195
|
+
"./popover" (module) {
|
|
196
196
|
module.exports = require("./popover.cjs");
|
|
197
197
|
},
|
|
198
|
-
"
|
|
198
|
+
"./portal-container" (module) {
|
|
199
199
|
module.exports = require("./portal-container.cjs");
|
|
200
200
|
},
|
|
201
201
|
"./progress" (module) {
|
|
@@ -219,7 +219,7 @@ var __webpack_modules__ = {
|
|
|
219
219
|
"./reference-chip-colors" (module) {
|
|
220
220
|
module.exports = require("./reference-chip-colors.cjs");
|
|
221
221
|
},
|
|
222
|
-
"
|
|
222
|
+
"./reference-chip" (module) {
|
|
223
223
|
module.exports = require("./reference-chip.cjs");
|
|
224
224
|
},
|
|
225
225
|
"./resizable" (module) {
|
|
@@ -264,7 +264,7 @@ var __webpack_modules__ = {
|
|
|
264
264
|
"./sources" (module) {
|
|
265
265
|
module.exports = require("./sources.cjs");
|
|
266
266
|
},
|
|
267
|
-
"
|
|
267
|
+
"./spinner" (module) {
|
|
268
268
|
module.exports = require("./spinner.cjs");
|
|
269
269
|
},
|
|
270
270
|
"./stats-card" (module) {
|
|
@@ -282,7 +282,7 @@ var __webpack_modules__ = {
|
|
|
282
282
|
"./tabs" (module) {
|
|
283
283
|
module.exports = require("./tabs.cjs");
|
|
284
284
|
},
|
|
285
|
-
"
|
|
285
|
+
"./textarea" (module) {
|
|
286
286
|
module.exports = require("./textarea.cjs");
|
|
287
287
|
},
|
|
288
288
|
"./thinking-indicator" (module) {
|
|
@@ -291,19 +291,19 @@ var __webpack_modules__ = {
|
|
|
291
291
|
"./toggle-group" (module) {
|
|
292
292
|
module.exports = require("./toggle-group.cjs");
|
|
293
293
|
},
|
|
294
|
-
"
|
|
294
|
+
"./toggle" (module) {
|
|
295
295
|
module.exports = require("./toggle.cjs");
|
|
296
296
|
},
|
|
297
297
|
"./tool-call" (module) {
|
|
298
298
|
module.exports = require("./tool-call.cjs");
|
|
299
299
|
},
|
|
300
|
-
"
|
|
300
|
+
"./tooltip" (module) {
|
|
301
301
|
module.exports = require("./tooltip.cjs");
|
|
302
302
|
},
|
|
303
303
|
"./tree-view" (module) {
|
|
304
304
|
module.exports = require("./tree-view.cjs");
|
|
305
305
|
},
|
|
306
|
-
"
|
|
306
|
+
"./variable-picker" (module) {
|
|
307
307
|
module.exports = require("./variable-picker/index.cjs");
|
|
308
308
|
},
|
|
309
309
|
"./variable-value-control" (module) {
|
|
@@ -419,7 +419,7 @@ var __webpack_exports__ = {};
|
|
|
419
419
|
"ReferenceChip"
|
|
420
420
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_avatar__rspack_import_5[__rspack_import_key];
|
|
421
421
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
422
|
-
var _badge__rspack_import_6 = __webpack_require__("
|
|
422
|
+
var _badge__rspack_import_6 = __webpack_require__("./badge");
|
|
423
423
|
var __rspack_reexport = {};
|
|
424
424
|
for(const __rspack_import_key in _badge__rspack_import_6)if ([
|
|
425
425
|
"getReferenceChipColors",
|
|
@@ -489,7 +489,7 @@ var __webpack_exports__ = {};
|
|
|
489
489
|
"ReferenceChip"
|
|
490
490
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_byo_model_dialog__rspack_import_12[__rspack_import_key];
|
|
491
491
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
492
|
-
var _calendar__rspack_import_13 = __webpack_require__("
|
|
492
|
+
var _calendar__rspack_import_13 = __webpack_require__("./calendar");
|
|
493
493
|
var __rspack_reexport = {};
|
|
494
494
|
for(const __rspack_import_key in _calendar__rspack_import_13)if ([
|
|
495
495
|
"getReferenceChipColors",
|
|
@@ -499,7 +499,7 @@ var __webpack_exports__ = {};
|
|
|
499
499
|
"ReferenceChip"
|
|
500
500
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_calendar__rspack_import_13[__rspack_import_key];
|
|
501
501
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
502
|
-
var _card__rspack_import_14 = __webpack_require__("
|
|
502
|
+
var _card__rspack_import_14 = __webpack_require__("./card");
|
|
503
503
|
var __rspack_reexport = {};
|
|
504
504
|
for(const __rspack_import_key in _card__rspack_import_14)if ([
|
|
505
505
|
"getReferenceChipColors",
|
|
@@ -539,7 +539,7 @@ var __webpack_exports__ = {};
|
|
|
539
539
|
"ReferenceChip"
|
|
540
540
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_chat_hero__rspack_import_17[__rspack_import_key];
|
|
541
541
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
542
|
-
var _checkbox__rspack_import_18 = __webpack_require__("
|
|
542
|
+
var _checkbox__rspack_import_18 = __webpack_require__("./checkbox");
|
|
543
543
|
var __rspack_reexport = {};
|
|
544
544
|
for(const __rspack_import_key in _checkbox__rspack_import_18)if ([
|
|
545
545
|
"getReferenceChipColors",
|
|
@@ -559,7 +559,7 @@ var __webpack_exports__ = {};
|
|
|
559
559
|
"ReferenceChip"
|
|
560
560
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_citation__rspack_import_19[__rspack_import_key];
|
|
561
561
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
562
|
-
var _code_block__rspack_import_20 = __webpack_require__("
|
|
562
|
+
var _code_block__rspack_import_20 = __webpack_require__("./code-block");
|
|
563
563
|
var __rspack_reexport = {};
|
|
564
564
|
for(const __rspack_import_key in _code_block__rspack_import_20)if ([
|
|
565
565
|
"getReferenceChipColors",
|
|
@@ -589,7 +589,7 @@ var __webpack_exports__ = {};
|
|
|
589
589
|
"ReferenceChip"
|
|
590
590
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_combobox__rspack_import_22[__rspack_import_key];
|
|
591
591
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
592
|
-
var _command__rspack_import_23 = __webpack_require__("
|
|
592
|
+
var _command__rspack_import_23 = __webpack_require__("./command");
|
|
593
593
|
var __rspack_reexport = {};
|
|
594
594
|
for(const __rspack_import_key in _command__rspack_import_23)if ([
|
|
595
595
|
"getReferenceChipColors",
|
|
@@ -799,7 +799,7 @@ var __webpack_exports__ = {};
|
|
|
799
799
|
"ReferenceChip"
|
|
800
800
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_hover_card__rspack_import_43[__rspack_import_key];
|
|
801
801
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
802
|
-
var _info_tooltip__rspack_import_44 = __webpack_require__("
|
|
802
|
+
var _info_tooltip__rspack_import_44 = __webpack_require__("./info-tooltip");
|
|
803
803
|
var __rspack_reexport = {};
|
|
804
804
|
for(const __rspack_import_key in _info_tooltip__rspack_import_44)if ([
|
|
805
805
|
"getReferenceChipColors",
|
|
@@ -809,7 +809,7 @@ var __webpack_exports__ = {};
|
|
|
809
809
|
"ReferenceChip"
|
|
810
810
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_info_tooltip__rspack_import_44[__rspack_import_key];
|
|
811
811
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
812
|
-
var _input__rspack_import_45 = __webpack_require__("
|
|
812
|
+
var _input__rspack_import_45 = __webpack_require__("./input");
|
|
813
813
|
var __rspack_reexport = {};
|
|
814
814
|
for(const __rspack_import_key in _input__rspack_import_45)if ([
|
|
815
815
|
"getReferenceChipColors",
|
|
@@ -819,7 +819,7 @@ var __webpack_exports__ = {};
|
|
|
819
819
|
"ReferenceChip"
|
|
820
820
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_input__rspack_import_45[__rspack_import_key];
|
|
821
821
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
822
|
-
var _input_group__rspack_import_46 = __webpack_require__("
|
|
822
|
+
var _input_group__rspack_import_46 = __webpack_require__("./input-group");
|
|
823
823
|
var __rspack_reexport = {};
|
|
824
824
|
for(const __rspack_import_key in _input_group__rspack_import_46)if ([
|
|
825
825
|
"getReferenceChipColors",
|
|
@@ -839,7 +839,7 @@ var __webpack_exports__ = {};
|
|
|
839
839
|
"ReferenceChip"
|
|
840
840
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_json_tree_view__rspack_import_47[__rspack_import_key];
|
|
841
841
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
842
|
-
var _label__rspack_import_48 = __webpack_require__("
|
|
842
|
+
var _label__rspack_import_48 = __webpack_require__("./label");
|
|
843
843
|
var __rspack_reexport = {};
|
|
844
844
|
for(const __rspack_import_key in _label__rspack_import_48)if ([
|
|
845
845
|
"getReferenceChipColors",
|
|
@@ -849,7 +849,7 @@ var __webpack_exports__ = {};
|
|
|
849
849
|
"ReferenceChip"
|
|
850
850
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_label__rspack_import_48[__rspack_import_key];
|
|
851
851
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
852
|
-
var _layout__rspack_import_49 = __webpack_require__("
|
|
852
|
+
var _layout__rspack_import_49 = __webpack_require__("./layout");
|
|
853
853
|
var __rspack_reexport = {};
|
|
854
854
|
for(const __rspack_import_key in _layout__rspack_import_49)if ([
|
|
855
855
|
"getReferenceChipColors",
|
|
@@ -999,7 +999,7 @@ var __webpack_exports__ = {};
|
|
|
999
999
|
"ReferenceChip"
|
|
1000
1000
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_password_input__rspack_import_63[__rspack_import_key];
|
|
1001
1001
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
1002
|
-
var _popover__rspack_import_64 = __webpack_require__("
|
|
1002
|
+
var _popover__rspack_import_64 = __webpack_require__("./popover");
|
|
1003
1003
|
var __rspack_reexport = {};
|
|
1004
1004
|
for(const __rspack_import_key in _popover__rspack_import_64)if ([
|
|
1005
1005
|
"getReferenceChipColors",
|
|
@@ -1009,7 +1009,7 @@ var __webpack_exports__ = {};
|
|
|
1009
1009
|
"ReferenceChip"
|
|
1010
1010
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_popover__rspack_import_64[__rspack_import_key];
|
|
1011
1011
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
1012
|
-
var _portal_container__rspack_import_65 = __webpack_require__("
|
|
1012
|
+
var _portal_container__rspack_import_65 = __webpack_require__("./portal-container");
|
|
1013
1013
|
var __rspack_reexport = {};
|
|
1014
1014
|
for(const __rspack_import_key in _portal_container__rspack_import_65)if ([
|
|
1015
1015
|
"getReferenceChipColors",
|
|
@@ -1079,7 +1079,7 @@ var __webpack_exports__ = {};
|
|
|
1079
1079
|
"ReferenceChip"
|
|
1080
1080
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_radio_group__rspack_import_71[__rspack_import_key];
|
|
1081
1081
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
1082
|
-
var _reference_chip__rspack_import_72 = __webpack_require__("
|
|
1082
|
+
var _reference_chip__rspack_import_72 = __webpack_require__("./reference-chip");
|
|
1083
1083
|
var _reference_chip_colors__rspack_import_73 = __webpack_require__("./reference-chip-colors");
|
|
1084
1084
|
var _resizable__rspack_import_74 = __webpack_require__("./resizable");
|
|
1085
1085
|
var __rspack_reexport = {};
|
|
@@ -1221,7 +1221,7 @@ var __webpack_exports__ = {};
|
|
|
1221
1221
|
"ReferenceChip"
|
|
1222
1222
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_sources__rspack_import_87[__rspack_import_key];
|
|
1223
1223
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
1224
|
-
var _spinner__rspack_import_88 = __webpack_require__("
|
|
1224
|
+
var _spinner__rspack_import_88 = __webpack_require__("./spinner");
|
|
1225
1225
|
var __rspack_reexport = {};
|
|
1226
1226
|
for(const __rspack_import_key in _spinner__rspack_import_88)if ([
|
|
1227
1227
|
"getReferenceChipColors",
|
|
@@ -1281,7 +1281,7 @@ var __webpack_exports__ = {};
|
|
|
1281
1281
|
"ReferenceChip"
|
|
1282
1282
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_tabs__rspack_import_93[__rspack_import_key];
|
|
1283
1283
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
1284
|
-
var _textarea__rspack_import_94 = __webpack_require__("
|
|
1284
|
+
var _textarea__rspack_import_94 = __webpack_require__("./textarea");
|
|
1285
1285
|
var __rspack_reexport = {};
|
|
1286
1286
|
for(const __rspack_import_key in _textarea__rspack_import_94)if ([
|
|
1287
1287
|
"getReferenceChipColors",
|
|
@@ -1301,7 +1301,7 @@ var __webpack_exports__ = {};
|
|
|
1301
1301
|
"ReferenceChip"
|
|
1302
1302
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_thinking_indicator__rspack_import_95[__rspack_import_key];
|
|
1303
1303
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
1304
|
-
var _toggle__rspack_import_96 = __webpack_require__("
|
|
1304
|
+
var _toggle__rspack_import_96 = __webpack_require__("./toggle");
|
|
1305
1305
|
var __rspack_reexport = {};
|
|
1306
1306
|
for(const __rspack_import_key in _toggle__rspack_import_96)if ([
|
|
1307
1307
|
"getReferenceChipColors",
|
|
@@ -1331,7 +1331,7 @@ var __webpack_exports__ = {};
|
|
|
1331
1331
|
"ReferenceChip"
|
|
1332
1332
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_tool_call__rspack_import_98[__rspack_import_key];
|
|
1333
1333
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
1334
|
-
var _tooltip__rspack_import_99 = __webpack_require__("
|
|
1334
|
+
var _tooltip__rspack_import_99 = __webpack_require__("./tooltip");
|
|
1335
1335
|
var __rspack_reexport = {};
|
|
1336
1336
|
for(const __rspack_import_key in _tooltip__rspack_import_99)if ([
|
|
1337
1337
|
"getReferenceChipColors",
|
|
@@ -1343,7 +1343,7 @@ var __webpack_exports__ = {};
|
|
|
1343
1343
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
1344
1344
|
var _tree_view__rspack_import_100 = __webpack_require__("./tree-view");
|
|
1345
1345
|
var _tree_view__rspack_import_100_default = /*#__PURE__*/ __webpack_require__.n(_tree_view__rspack_import_100);
|
|
1346
|
-
var _variable_picker__rspack_import_101 = __webpack_require__("
|
|
1346
|
+
var _variable_picker__rspack_import_101 = __webpack_require__("./variable-picker");
|
|
1347
1347
|
var __rspack_reexport = {};
|
|
1348
1348
|
for(const __rspack_import_key in _variable_picker__rspack_import_101)if ([
|
|
1349
1349
|
"getReferenceChipColors",
|
|
@@ -107,10 +107,9 @@ function valueAsText(node) {
|
|
|
107
107
|
if (void 0 === node.value) return 'null';
|
|
108
108
|
return JSON.stringify(node.value, null, 2);
|
|
109
109
|
}
|
|
110
|
-
const DefaultRowWrapper = ({ className, style,
|
|
110
|
+
const DefaultRowWrapper = ({ className, style, children })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
111
111
|
className: className,
|
|
112
112
|
style: style,
|
|
113
|
-
onClick: onClick,
|
|
114
113
|
children: children
|
|
115
114
|
});
|
|
116
115
|
function JsonTreeView({ strings, tooltipContentClassName, ...props }) {
|
|
@@ -79,10 +79,9 @@ function valueAsText(node) {
|
|
|
79
79
|
if (void 0 === node.value) return 'null';
|
|
80
80
|
return JSON.stringify(node.value, null, 2);
|
|
81
81
|
}
|
|
82
|
-
const DefaultRowWrapper = ({ className, style,
|
|
82
|
+
const DefaultRowWrapper = ({ className, style, children })=>/*#__PURE__*/ jsx("div", {
|
|
83
83
|
className: className,
|
|
84
84
|
style: style,
|
|
85
|
-
onClick: onClick,
|
|
86
85
|
children: children
|
|
87
86
|
});
|
|
88
87
|
function JsonTreeView({ strings, tooltipContentClassName, ...props }) {
|
|
@@ -290,9 +290,8 @@ export interface JsonTreeRowWrapperProps {
|
|
|
290
290
|
className?: string;
|
|
291
291
|
style?: CSSProperties;
|
|
292
292
|
/**
|
|
293
|
-
*
|
|
294
|
-
*
|
|
295
|
-
* survives; the handler already ignores clicks on interactive descendants.
|
|
293
|
+
* @deprecated No longer passed. The grid row toggles on click itself, so a
|
|
294
|
+
* wrapper doesn't need to forward anything.
|
|
296
295
|
*/
|
|
297
296
|
onClick?: (event: MouseEvent) => void;
|
|
298
297
|
children: ReactNode;
|
|
@@ -142,7 +142,7 @@ function JsonTreeRow({ row, index }) {
|
|
|
142
142
|
}) ?? getDefaultActions();
|
|
143
143
|
const rowClickable = isContainer && !!onToggleCollapsed;
|
|
144
144
|
const handleRowClick = (event)=>{
|
|
145
|
-
if (event.target.closest('button, a, input, textarea, select, [contenteditable="true"]')) return;
|
|
145
|
+
if (event.target.closest('button, a, input, textarea, select, [contenteditable="true"], [data-cell="detail"]')) return;
|
|
146
146
|
onToggleCollapsed?.(node.path);
|
|
147
147
|
};
|
|
148
148
|
const collapsedHere = isContainer && (0, external_buildJsonTree_cjs_namespaceObject.isPathCollapsed)(collapsed, node.path);
|
|
@@ -161,26 +161,26 @@ function JsonTreeRow({ row, index }) {
|
|
|
161
161
|
"aria-rowindex": index + 1,
|
|
162
162
|
"aria-expanded": (0, external_treeGrid_cjs_namespaceObject.isParentRow)(row) ? !collapsedHere : void 0,
|
|
163
163
|
className: ROW_ELEMENT_CLASS,
|
|
164
|
+
onClick: rowClickable ? handleRowClick : void 0,
|
|
164
165
|
children: [
|
|
165
166
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(RowWrapper, {
|
|
166
167
|
node: node,
|
|
167
168
|
displayPath: displayPath,
|
|
168
169
|
className: (0, index_cjs_namespaceObject.cn)(ROW_CLASS, rowClickable && 'cursor-pointer'),
|
|
169
170
|
style: rowIndent(depth),
|
|
170
|
-
onClick: rowClickable ? handleRowClick : void 0,
|
|
171
171
|
children: [
|
|
172
172
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(GridCell, {
|
|
173
173
|
cell: "name",
|
|
174
174
|
className: (0, index_cjs_namespaceObject.cn)(NAME_CELL_CLASS, besideValue && 'max-w-1/2'),
|
|
175
175
|
children: [
|
|
176
|
-
isContainer ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
className:
|
|
176
|
+
isContainer ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
177
|
+
"aria-hidden": true,
|
|
178
|
+
onMouseDown: (event)=>{
|
|
179
|
+
event.preventDefault();
|
|
180
|
+
event.currentTarget.closest('[role="row"]')?.focus();
|
|
181
|
+
},
|
|
182
|
+
title: collapsedHere ? strings.expandKey(node.key) : strings.collapseKey(node.key),
|
|
183
|
+
className: (0, index_cjs_namespaceObject.cn)('grid size-2.5 shrink-0 place-items-center text-foreground-subtle transition', rowClickable && 'hover:text-foreground'),
|
|
184
184
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.ChevronDown, {
|
|
185
185
|
size: 10,
|
|
186
186
|
className: (0, index_cjs_namespaceObject.cn)('transition-transform duration-100', collapsedHere && '-rotate-90')
|
|
@@ -112,7 +112,7 @@ function JsonTreeRow({ row, index }) {
|
|
|
112
112
|
}) ?? getDefaultActions();
|
|
113
113
|
const rowClickable = isContainer && !!onToggleCollapsed;
|
|
114
114
|
const handleRowClick = (event)=>{
|
|
115
|
-
if (event.target.closest('button, a, input, textarea, select, [contenteditable="true"]')) return;
|
|
115
|
+
if (event.target.closest('button, a, input, textarea, select, [contenteditable="true"], [data-cell="detail"]')) return;
|
|
116
116
|
onToggleCollapsed?.(node.path);
|
|
117
117
|
};
|
|
118
118
|
const collapsedHere = isContainer && isPathCollapsed(collapsed, node.path);
|
|
@@ -131,26 +131,26 @@ function JsonTreeRow({ row, index }) {
|
|
|
131
131
|
"aria-rowindex": index + 1,
|
|
132
132
|
"aria-expanded": isParentRow(row) ? !collapsedHere : void 0,
|
|
133
133
|
className: ROW_ELEMENT_CLASS,
|
|
134
|
+
onClick: rowClickable ? handleRowClick : void 0,
|
|
134
135
|
children: [
|
|
135
136
|
/*#__PURE__*/ jsxs(RowWrapper, {
|
|
136
137
|
node: node,
|
|
137
138
|
displayPath: displayPath,
|
|
138
139
|
className: cn(ROW_CLASS, rowClickable && 'cursor-pointer'),
|
|
139
140
|
style: rowIndent(depth),
|
|
140
|
-
onClick: rowClickable ? handleRowClick : void 0,
|
|
141
141
|
children: [
|
|
142
142
|
/*#__PURE__*/ jsxs(GridCell, {
|
|
143
143
|
cell: "name",
|
|
144
144
|
className: cn(NAME_CELL_CLASS, besideValue && 'max-w-1/2'),
|
|
145
145
|
children: [
|
|
146
|
-
isContainer ? /*#__PURE__*/ jsx("
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
className:
|
|
146
|
+
isContainer ? /*#__PURE__*/ jsx("span", {
|
|
147
|
+
"aria-hidden": true,
|
|
148
|
+
onMouseDown: (event)=>{
|
|
149
|
+
event.preventDefault();
|
|
150
|
+
event.currentTarget.closest('[role="row"]')?.focus();
|
|
151
|
+
},
|
|
152
|
+
title: collapsedHere ? strings.expandKey(node.key) : strings.collapseKey(node.key),
|
|
153
|
+
className: cn('grid size-2.5 shrink-0 place-items-center text-foreground-subtle transition', rowClickable && 'hover:text-foreground'),
|
|
154
154
|
children: /*#__PURE__*/ jsx(ChevronDown, {
|
|
155
155
|
size: 10,
|
|
156
156
|
className: cn('transition-transform duration-100', collapsedHere && '-rotate-90')
|
|
@@ -31,7 +31,6 @@ const external_react_namespaceObject = require("react");
|
|
|
31
31
|
const use_isomorphic_layout_effect_cjs_namespaceObject = require("../../../lib/use-isomorphic-layout-effect.cjs");
|
|
32
32
|
const external_buildJsonTree_cjs_namespaceObject = require("./buildJsonTree.cjs");
|
|
33
33
|
const EDITOR_ATTR = 'data-json-tree-editor';
|
|
34
|
-
const SKIP_ATTR = 'data-json-tree-skip';
|
|
35
34
|
const MANAGED_ATTR = 'data-json-tree-tabindex';
|
|
36
35
|
const ROW_SELECTOR = '[role="row"]';
|
|
37
36
|
const CONTROL_SELECTOR = 'button, a[href], input, select, textarea, [contenteditable="true"], [tabindex]:not([role="gridcell"])';
|
|
@@ -52,7 +51,7 @@ function isOwnRow(grid, row) {
|
|
|
52
51
|
return row.closest('[role="treegrid"]') === grid;
|
|
53
52
|
}
|
|
54
53
|
function isNavigable(element) {
|
|
55
|
-
return !element.hasAttribute('disabled') && !element.closest(`[${EDITOR_ATTR}], [
|
|
54
|
+
return !element.hasAttribute('disabled') && !element.closest(`[${EDITOR_ATTR}], [aria-hidden="true"]`);
|
|
56
55
|
}
|
|
57
56
|
function cellsOf(row) {
|
|
58
57
|
return Array.from(row.querySelectorAll('[role="gridcell"]'));
|
|
@@ -80,7 +79,6 @@ function focusInRow(row, cell) {
|
|
|
80
79
|
}
|
|
81
80
|
function syncRowTabOrder(row, tabbable) {
|
|
82
81
|
for (const control of row.querySelectorAll(CONTROL_SELECTOR)){
|
|
83
|
-
if (control.closest(`[${SKIP_ATTR}]`)) continue;
|
|
84
82
|
const saved = control.getAttribute(MANAGED_ATTR);
|
|
85
83
|
if (tabbable) {
|
|
86
84
|
if (null === saved) continue;
|
|
@@ -2,7 +2,6 @@ import { useMemo, useRef, useState } from "react";
|
|
|
2
2
|
import { useIsomorphicLayoutEffect } from "../../../lib/use-isomorphic-layout-effect.js";
|
|
3
3
|
import { appendPathSegment, isPathCollapsed } from "./buildJsonTree.js";
|
|
4
4
|
const EDITOR_ATTR = 'data-json-tree-editor';
|
|
5
|
-
const SKIP_ATTR = 'data-json-tree-skip';
|
|
6
5
|
const MANAGED_ATTR = 'data-json-tree-tabindex';
|
|
7
6
|
const ROW_SELECTOR = '[role="row"]';
|
|
8
7
|
const CONTROL_SELECTOR = 'button, a[href], input, select, textarea, [contenteditable="true"], [tabindex]:not([role="gridcell"])';
|
|
@@ -23,7 +22,7 @@ function isOwnRow(grid, row) {
|
|
|
23
22
|
return row.closest('[role="treegrid"]') === grid;
|
|
24
23
|
}
|
|
25
24
|
function isNavigable(element) {
|
|
26
|
-
return !element.hasAttribute('disabled') && !element.closest(`[${EDITOR_ATTR}], [
|
|
25
|
+
return !element.hasAttribute('disabled') && !element.closest(`[${EDITOR_ATTR}], [aria-hidden="true"]`);
|
|
27
26
|
}
|
|
28
27
|
function cellsOf(row) {
|
|
29
28
|
return Array.from(row.querySelectorAll('[role="gridcell"]'));
|
|
@@ -51,7 +50,6 @@ function focusInRow(row, cell) {
|
|
|
51
50
|
}
|
|
52
51
|
function syncRowTabOrder(row, tabbable) {
|
|
53
52
|
for (const control of row.querySelectorAll(CONTROL_SELECTOR)){
|
|
54
|
-
if (control.closest(`[${SKIP_ATTR}]`)) continue;
|
|
55
53
|
const saved = control.getAttribute(MANAGED_ATTR);
|
|
56
54
|
if (tabbable) {
|
|
57
55
|
if (null === saved) continue;
|
package/dist/styles.css
CHANGED
|
@@ -7438,15 +7438,6 @@
|
|
|
7438
7438
|
opacity: 50%;
|
|
7439
7439
|
}
|
|
7440
7440
|
}
|
|
7441
|
-
.disabled\:hover\:text-foreground-subtle {
|
|
7442
|
-
&:disabled {
|
|
7443
|
-
&:hover {
|
|
7444
|
-
@media (hover: hover) {
|
|
7445
|
-
color: var(--foreground-subtle);
|
|
7446
|
-
}
|
|
7447
|
-
}
|
|
7448
|
-
}
|
|
7449
|
-
}
|
|
7450
7441
|
.in-data-\[density\=compact\]\:w-8 {
|
|
7451
7442
|
:where(*[data-density="compact"]) & {
|
|
7452
7443
|
width: calc(var(--spacing) * 8);
|