pds-dev-kit-web-test 2.5.90 → 2.5.92
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.
@@ -46,6 +46,7 @@ type ActionHandlerPayload = {
|
|
46
46
|
e?: ResizeEventType;
|
47
47
|
node?: HTMLElement;
|
48
48
|
blockId: string;
|
49
|
+
workDir: string;
|
49
50
|
};
|
50
51
|
'@CUSTOMSECTION/BULK_DRAG_STOP': {
|
51
52
|
layout: Layout;
|
@@ -55,6 +56,7 @@ type ActionHandlerPayload = {
|
|
55
56
|
e?: ResizeEventType;
|
56
57
|
node?: HTMLElement;
|
57
58
|
outerBasedChildrenPositions: LayoutItem[];
|
59
|
+
workDir: string;
|
58
60
|
};
|
59
61
|
'@CUSTOMSECTION/CB_RESIZE_STOP': {
|
60
62
|
layout: Layout;
|
@@ -64,6 +66,7 @@ type ActionHandlerPayload = {
|
|
64
66
|
e?: ResizeEventType;
|
65
67
|
node?: HTMLElement;
|
66
68
|
blockId: string;
|
69
|
+
workDir: string;
|
67
70
|
};
|
68
71
|
'@CUSTOMSECTION/CB_AUTO_FIT_CONTENT': {
|
69
72
|
layout: Layout;
|
@@ -76,6 +79,7 @@ type ActionHandlerPayload = {
|
|
76
79
|
hadPaddingChanged: boolean;
|
77
80
|
};
|
78
81
|
blockId: string;
|
82
|
+
workDir: string;
|
79
83
|
};
|
80
84
|
'@CUSTOMSECTION/PLACEMENT_CHANGED': {
|
81
85
|
layout: Layout;
|
@@ -327,7 +327,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
327
327
|
});
|
328
328
|
};
|
329
329
|
var onDragStop = function (props) {
|
330
|
-
var _a, _b;
|
330
|
+
var _a, _b, _c, _d;
|
331
331
|
if (!isEditMode || !props.item) {
|
332
332
|
return;
|
333
333
|
}
|
@@ -345,11 +345,11 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
345
345
|
sectionActionHandler &&
|
346
346
|
sectionActionHandler({
|
347
347
|
type: '@CUSTOMSECTION/BULK_DRAG_STOP',
|
348
|
-
payload: __assign(__assign({}, props), { outerBasedChildrenPositions: outerBasedChildrenPositions })
|
348
|
+
payload: __assign(__assign({}, props), { outerBasedChildrenPositions: outerBasedChildrenPositions, workDir: (_a = (0, group_1.getBlockWorkDirPath)(newblock, 'BULK')) !== null && _a !== void 0 ? _a : 'NOT-FOUND' })
|
349
349
|
});
|
350
350
|
return;
|
351
351
|
}
|
352
|
-
var numberId = Number((
|
352
|
+
var numberId = Number((_b = props.item) === null || _b === void 0 ? void 0 : _b.i);
|
353
353
|
var blockId = (0, group_1.formatCbIdToBlockId)(numberId);
|
354
354
|
var isIdNumber = !Number.isNaN(numberId);
|
355
355
|
if (blockId) {
|
@@ -370,7 +370,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
370
370
|
blockId: blockId,
|
371
371
|
cbId: numberId,
|
372
372
|
type: 'COMPONENT_BLOCK',
|
373
|
-
workDir: (
|
373
|
+
workDir: (_c = (0, group_1.getBlockWorkDirPath)(newblock, blockId)) !== null && _c !== void 0 ? _c : 'NOT-FOUND'
|
374
374
|
}
|
375
375
|
}
|
376
376
|
});
|
@@ -379,11 +379,12 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
379
379
|
if (sectionActionHandler && isIdNumber) {
|
380
380
|
sectionActionHandler({
|
381
381
|
type: '@CUSTOMSECTION/CB_DRAG_STOP',
|
382
|
-
payload: __assign(__assign({}, props), { blockId: blockId })
|
382
|
+
payload: __assign(__assign({}, props), { blockId: blockId, workDir: (_d = (0, group_1.getBlockWorkDirPath)(newblock, blockId)) !== null && _d !== void 0 ? _d : 'NOT-FOUND' })
|
383
383
|
});
|
384
384
|
}
|
385
385
|
};
|
386
386
|
var onResizeStop = function (props) {
|
387
|
+
var _a;
|
387
388
|
var prev = props.prev, item = props.item;
|
388
389
|
if (!isEditMode || !item) {
|
389
390
|
return;
|
@@ -400,11 +401,12 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
400
401
|
if (sectionActionHandler && isIdNumber) {
|
401
402
|
sectionActionHandler({
|
402
403
|
type: '@CUSTOMSECTION/CB_RESIZE_STOP',
|
403
|
-
payload: __assign(__assign({}, props), { blockId: (0, group_1.formatCbIdToBlockId)(numberId) })
|
404
|
+
payload: __assign(__assign({}, props), { blockId: (0, group_1.formatCbIdToBlockId)(numberId), workDir: (_a = (0, group_1.getBlockWorkDirPath)(newblock, (0, group_1.formatCbIdToBlockId)(numberId))) !== null && _a !== void 0 ? _a : 'NOT-FOUND' })
|
404
405
|
});
|
405
406
|
}
|
406
407
|
};
|
407
408
|
var onAutoFitContent = function (props) {
|
409
|
+
var _a;
|
408
410
|
var prev = props.prev, item = props.item;
|
409
411
|
if (!isEditMode || !item) {
|
410
412
|
return;
|
@@ -421,7 +423,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
421
423
|
if (sectionActionHandler && isIdNumber) {
|
422
424
|
sectionActionHandler({
|
423
425
|
type: '@CUSTOMSECTION/CB_AUTO_FIT_CONTENT',
|
424
|
-
payload: __assign(__assign({}, props), { details: { hadPaddingChanged: props.hasPaddingChanged }, blockId: (0, group_1.formatCbIdToBlockId)(numberId) })
|
426
|
+
payload: __assign(__assign({}, props), { details: { hadPaddingChanged: props.hasPaddingChanged }, blockId: (0, group_1.formatCbIdToBlockId)(numberId), workDir: (_a = (0, group_1.getBlockWorkDirPath)(newblock, (0, group_1.formatCbIdToBlockId)(numberId))) !== null && _a !== void 0 ? _a : 'NOT-FOUND' })
|
425
427
|
});
|
426
428
|
}
|
427
429
|
};
|
@@ -658,6 +660,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
658
660
|
}
|
659
661
|
});
|
660
662
|
};
|
663
|
+
console.log('pds bulk block ids', bulkBlockIds);
|
661
664
|
return ((0, jsx_runtime_1.jsx)(ErrorBoundary_1.ErrorBoundary, { children: (0, jsx_runtime_1.jsxs)(exports.S_gleStyles, __assign({ isBulkMode: shortcutKeyMode === 'BULK_SELECT' }, { children: [showSectionHiddenCover && (0, jsx_runtime_1.jsx)(S_HiddenCover_1.S_HiddenCover, {}), (0, jsx_runtime_1.jsx)(S_SectionWrapper, __assign({ ref: gleRef, "x-dlayout-section-type": "NO_NAME", onClick: onClickSection, onContextMenu: function (e) {
|
662
665
|
e.stopPropagation();
|
663
666
|
e.preventDefault();
|