pds-dev-kit-web-test 2.5.186 → 2.5.189
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.
@@ -105,6 +105,7 @@ function BasicButtonGroup(_a) {
|
|
105
105
|
var isHoveredButton = index === hoveredButtonIndex;
|
106
106
|
return ((0, jsx_runtime_1.jsxs)(S_BasicButton, __assign({ size: size, onClick: function (e) { return onClick && onClick(e); }, onMouseDown: function (e) { return onMouseDown && onMouseDown(e); }, onPointerEnter: function () { return setHoveredButtonIndex(index); }, onPointerLeave: function () { return setHoveredButtonIndex(null); }, disabled: state === 'disabled' || buttonState === 'disabled' }, { children: [(0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: iconName, size: size === 'small' ? 20 : 24, fillType: iconFillType, colorKey: getColorKey(buttonState, iconColorTheme) }), tooltipText &&
|
107
107
|
isHoveredButton &&
|
108
|
+
tooltipPositionOffset &&
|
108
109
|
(0, react_dom_1.createPortal)((0, jsx_runtime_1.jsx)(S_TooltipWrapper, __assign({ className: "TooltipWrapper", ref: tooltipRef, tooltipPositionCss: tooltipPositionCss, size: size }, { children: (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: tooltipText, colorOverride: "ui_cpnt_textlabel_button_tooltip", styleTheme: "caption2Regular", colorTheme: "sysTextSecondary" }) })), document.getElementById('tooltip-root'))] }), iconName + index));
|
109
110
|
}) })));
|
110
111
|
}
|
@@ -241,6 +241,17 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
241
241
|
}
|
242
242
|
setBulkBlockIds(bulks);
|
243
243
|
setSelectedBlockId(null);
|
244
|
+
var newBulkCBIds = bulks
|
245
|
+
.map(function (id) { return (0, group_1.formatBlockIdToCbId)(id); })
|
246
|
+
.filter(function (each) { return each !== null; });
|
247
|
+
var childrenCBIds = [];
|
248
|
+
if (newBulkCBIds.length === 0) {
|
249
|
+
var oneCB = (0, group_1.findOneComponentBlock)(newblock, bulks[0]);
|
250
|
+
childrenCBIds = oneCB ? [oneCB] : [];
|
251
|
+
}
|
252
|
+
else {
|
253
|
+
childrenCBIds = newBulkCBIds;
|
254
|
+
}
|
244
255
|
sectionActionHandler &&
|
245
256
|
sectionActionHandler({
|
246
257
|
type: '@CUSTOMSECTION/BLOCK_CLICKED',
|
@@ -250,9 +261,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
250
261
|
blockId: 'BULK',
|
251
262
|
childrenBlockIds: bulks,
|
252
263
|
workDir: (_a = (0, group_1.getBlockWorkDirPath)(newblock, editingGroupBlock)) !== null && _a !== void 0 ? _a : 'NOT-FOUND',
|
253
|
-
childrenCBIds:
|
254
|
-
.map(function (id) { return (0, group_1.formatBlockIdToCbId)(id); })
|
255
|
-
.filter(function (each) { return each !== null; })
|
264
|
+
childrenCBIds: childrenCBIds
|
256
265
|
}
|
257
266
|
}
|
258
267
|
});
|
@@ -262,10 +271,8 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
262
271
|
var makeAllInOneGroup = function () {
|
263
272
|
var _a, _b, _c, _d, _e;
|
264
273
|
var allRootChildIds = (0, group_1.findDirectChildrenBlockIds)(pedigreeState, editingGroupBlock);
|
265
|
-
console.log('allRootChildIds', allRootChildIds);
|
266
274
|
if (allRootChildIds.length === 1) {
|
267
275
|
var block = (0, group_1.findBlockByBlockId)(newblock, allRootChildIds[0]);
|
268
|
-
console.log('selected block', block);
|
269
276
|
if (!block) {
|
270
277
|
return;
|
271
278
|
}
|
@@ -304,6 +311,17 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
304
311
|
return;
|
305
312
|
}
|
306
313
|
setBulkBlockIds(allRootChildIds);
|
314
|
+
var newBulkCBIds = allRootChildIds
|
315
|
+
.map(function (id) { return (0, group_1.formatBlockIdToCbId)(id); })
|
316
|
+
.filter(function (each) { return each !== null; });
|
317
|
+
var childrenCBIds = [];
|
318
|
+
if (newBulkCBIds.length === 0) {
|
319
|
+
var oneCB = (0, group_1.findOneComponentBlock)(newblock, allRootChildIds[0]);
|
320
|
+
childrenCBIds = oneCB ? [oneCB] : [];
|
321
|
+
}
|
322
|
+
else {
|
323
|
+
childrenCBIds = newBulkCBIds;
|
324
|
+
}
|
307
325
|
sectionActionHandler &&
|
308
326
|
sectionActionHandler({
|
309
327
|
type: '@CUSTOMSECTION/BLOCK_CLICKED',
|
@@ -313,9 +331,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
313
331
|
blockId: 'BULK',
|
314
332
|
childrenBlockIds: allRootChildIds,
|
315
333
|
workDir: (_e = (0, group_1.getBlockWorkDirPath)(newblock, editingGroupBlock)) !== null && _e !== void 0 ? _e : 'NOT-FOUND',
|
316
|
-
childrenCBIds:
|
317
|
-
.map(function (id) { return (0, group_1.formatBlockIdToCbId)(id); })
|
318
|
-
.filter(function (each) { return each !== null; })
|
334
|
+
childrenCBIds: childrenCBIds
|
319
335
|
}
|
320
336
|
}
|
321
337
|
});
|
@@ -371,6 +387,14 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
371
387
|
var newBulkCBIds = newBulkBlockIds
|
372
388
|
.map(function (id) { return (0, group_1.formatBlockIdToCbId)(id); })
|
373
389
|
.filter(function (each) { return each !== null; });
|
390
|
+
var childrenCBIds = [];
|
391
|
+
if (newBulkCBIds.length === 0) {
|
392
|
+
var oneCB = (0, group_1.findOneComponentBlock)(newblock, newBulkBlockIds[0]);
|
393
|
+
childrenCBIds = oneCB ? [oneCB] : [];
|
394
|
+
}
|
395
|
+
else {
|
396
|
+
childrenCBIds = newBulkCBIds;
|
397
|
+
}
|
374
398
|
sectionActionHandler &&
|
375
399
|
sectionActionHandler({
|
376
400
|
type: '@CUSTOMSECTION/BLOCK_CLICKED',
|
@@ -379,7 +403,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
379
403
|
type: 'BULK',
|
380
404
|
blockId: 'BULK',
|
381
405
|
childrenBlockIds: newBulkBlockIds,
|
382
|
-
childrenCBIds:
|
406
|
+
childrenCBIds: childrenCBIds,
|
383
407
|
workDir: (_a = (0, group_1.getBlockWorkDirPath)(newblock, editingGroupBlock)) !== null && _a !== void 0 ? _a : 'NOT-FOUND'
|
384
408
|
}
|
385
409
|
}
|
@@ -393,6 +417,17 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
393
417
|
}
|
394
418
|
setBulkBlockIds(bulks);
|
395
419
|
setSelectedBlockId(null);
|
420
|
+
var newBulkCBIds = bulks
|
421
|
+
.map(function (id) { return (0, group_1.formatBlockIdToCbId)(id); })
|
422
|
+
.filter(function (each) { return each !== null; });
|
423
|
+
var childrenCBIds = [];
|
424
|
+
if (newBulkCBIds.length === 0) {
|
425
|
+
var oneCB = (0, group_1.findOneComponentBlock)(newblock, bulks[0]);
|
426
|
+
childrenCBIds = oneCB ? [oneCB] : [];
|
427
|
+
}
|
428
|
+
else {
|
429
|
+
childrenCBIds = newBulkCBIds;
|
430
|
+
}
|
396
431
|
sectionActionHandler &&
|
397
432
|
sectionActionHandler({
|
398
433
|
type: '@CUSTOMSECTION/BLOCK_CLICKED',
|
@@ -402,9 +437,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
402
437
|
blockId: 'BULK',
|
403
438
|
childrenBlockIds: bulks,
|
404
439
|
workDir: (_b = (0, group_1.getBlockWorkDirPath)(newblock, editingGroupBlock)) !== null && _b !== void 0 ? _b : 'NOT-FOUND',
|
405
|
-
childrenCBIds:
|
406
|
-
.map(function (id) { return (0, group_1.formatBlockIdToCbId)(id); })
|
407
|
-
.filter(function (each) { return each !== null; })
|
440
|
+
childrenCBIds: childrenCBIds
|
408
441
|
}
|
409
442
|
}
|
410
443
|
});
|
@@ -777,6 +810,14 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
777
810
|
var newBulkCBIds_1 = newBulkBlockIds_1
|
778
811
|
.map(function (id) { return (0, group_1.formatBlockIdToCbId)(id); })
|
779
812
|
.filter(function (each) { return each !== null; });
|
813
|
+
var childrenCBIds_1 = [];
|
814
|
+
if (newBulkCBIds_1.length === 0) {
|
815
|
+
var oneCB = (0, group_1.findOneComponentBlock)(newblock, newBulkBlockIds_1[0]);
|
816
|
+
childrenCBIds_1 = oneCB ? [oneCB] : [];
|
817
|
+
}
|
818
|
+
else {
|
819
|
+
childrenCBIds_1 = newBulkCBIds_1;
|
820
|
+
}
|
780
821
|
setBulkBlockIds(newBulkBlockIds_1);
|
781
822
|
sectionActionHandler &&
|
782
823
|
sectionActionHandler({
|
@@ -786,7 +827,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
786
827
|
blockId: 'BULK',
|
787
828
|
type: 'BULK',
|
788
829
|
childrenBlockIds: newBulkBlockIds_1,
|
789
|
-
childrenCBIds:
|
830
|
+
childrenCBIds: childrenCBIds_1,
|
790
831
|
workDir: (_b = (0, group_1.getBlockWorkDirPath)(newblock, editingGroupBlock)) !== null && _b !== void 0 ? _b : 'NOT-FOUND'
|
791
832
|
}
|
792
833
|
}
|
@@ -824,6 +865,14 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
824
865
|
.filter(function (each) { return each !== null; });
|
825
866
|
setBulkBlockIds(newBulkBlockIds_2);
|
826
867
|
setSelectedBlockId(null);
|
868
|
+
var childrenCBIds_2 = [];
|
869
|
+
if (newBulkCBIds_2.length === 0) {
|
870
|
+
var oneCB = (0, group_1.findOneComponentBlock)(newblock, newBulkBlockIds_2[0]);
|
871
|
+
childrenCBIds_2 = oneCB ? [oneCB] : [];
|
872
|
+
}
|
873
|
+
else {
|
874
|
+
childrenCBIds_2 = newBulkCBIds_2;
|
875
|
+
}
|
827
876
|
sectionActionHandler &&
|
828
877
|
sectionActionHandler({
|
829
878
|
type: '@CUSTOMSECTION/BLOCK_CLICKED',
|
@@ -832,7 +881,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
832
881
|
blockId: 'BULK',
|
833
882
|
type: 'BULK',
|
834
883
|
childrenBlockIds: newBulkBlockIds_2,
|
835
|
-
childrenCBIds:
|
884
|
+
childrenCBIds: childrenCBIds_2,
|
836
885
|
workDir: (_f = (0, group_1.getBlockWorkDirPath)(newblock, editingGroupBlock)) !== null && _f !== void 0 ? _f : 'NOT-FOUND'
|
837
886
|
}
|
838
887
|
}
|
@@ -845,6 +894,14 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
845
894
|
var newBulkCBIds = newBulkBlockIds
|
846
895
|
.map(function (id) { return (0, group_1.formatBlockIdToCbId)(id); })
|
847
896
|
.filter(function (each) { return each !== null; });
|
897
|
+
var childrenCBIds = [];
|
898
|
+
if (newBulkCBIds.length === 0) {
|
899
|
+
var oneCB = (0, group_1.findOneComponentBlock)(newblock, newBulkBlockIds[0]);
|
900
|
+
childrenCBIds = oneCB ? [oneCB] : [];
|
901
|
+
}
|
902
|
+
else {
|
903
|
+
childrenCBIds = newBulkCBIds;
|
904
|
+
}
|
848
905
|
sectionActionHandler &&
|
849
906
|
sectionActionHandler({
|
850
907
|
type: '@CUSTOMSECTION/BLOCK_CLICKED',
|
@@ -854,7 +911,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
854
911
|
type: 'GROUP_BLOCK',
|
855
912
|
workDir: (_g = (0, group_1.getBlockWorkDirPath)(newblock, editingGroupBlock)) !== null && _g !== void 0 ? _g : 'NOT-FOUND',
|
856
913
|
childrenBlockIds: newBulkBlockIds,
|
857
|
-
childrenCBIds:
|
914
|
+
childrenCBIds: childrenCBIds
|
858
915
|
}
|
859
916
|
}
|
860
917
|
});
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "pds-dev-kit-web-test",
|
3
|
-
"version": "2.5.
|
3
|
+
"version": "2.5.189",
|
4
4
|
"license": "MIT",
|
5
5
|
"private": false,
|
6
6
|
"main": "dist/index.js",
|
@@ -23,7 +23,7 @@
|
|
23
23
|
"lottie-react": "^2.3.1",
|
24
24
|
"nuka-carousel": "^4.8.4",
|
25
25
|
"publ-echo": "^0.0.99",
|
26
|
-
"publ-echo-test": "^0.0.
|
26
|
+
"publ-echo-test": "^0.0.164",
|
27
27
|
"react-hook-form": "^7.28.1",
|
28
28
|
"react-i18next": "^11.12.0",
|
29
29
|
"react-router-dom": "^5.2.0",
|