@kontur.candy/generator 4.266.0 → 4.267.0-szvm-import.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/index.js +5 -9
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -143785,8 +143785,6 @@ class CrossfitTableConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODUL
|
|
|
143785
143785
|
}
|
|
143786
143786
|
|
|
143787
143787
|
doConvert(context) {
|
|
143788
|
-
var _node$optional;
|
|
143789
|
-
|
|
143790
143788
|
const node = this.getCurrentNodeAs(_CrossfitTableNode__WEBPACK_IMPORTED_MODULE_14__.CrossfitTableNode); // Chrome size != 100% bag
|
|
143791
143789
|
|
|
143792
143790
|
const columnWidths = (0,_TableCommons_ColumnWidthGuessing_GetColumnWidths__WEBPACK_IMPORTED_MODULE_5__.getColumnWidths)(node.sourceXmlNode, (0,_TableCommons_ColumnWidthGuessing_TypeBasedGuessContentWidth__WEBPACK_IMPORTED_MODULE_8__.typeBasedGuessContentWidth)(context)).map(w => w + 1);
|
|
@@ -143845,7 +143843,7 @@ class CrossfitTableConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODUL
|
|
|
143845
143843
|
tableBuilder.appendChild(loader);
|
|
143846
143844
|
}
|
|
143847
143845
|
|
|
143848
|
-
const sidebarBuilder = this.buildSidebar(context, node, sidebarColumns
|
|
143846
|
+
const sidebarBuilder = this.buildSidebar(context, node, sidebarColumns);
|
|
143849
143847
|
|
|
143850
143848
|
if (sidebarBuilder != undefined) {
|
|
143851
143849
|
tableBuilder.appendChild(sidebarBuilder);
|
|
@@ -143964,7 +143962,7 @@ class CrossfitTableConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODUL
|
|
|
143964
143962
|
return `<CrossfitTable.Loader>${(0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.localizedStringToJsx)(loaderText)}</CrossfitTable.Loader>`;
|
|
143965
143963
|
}
|
|
143966
143964
|
|
|
143967
|
-
buildSidebar(context, node, sidebarColumns
|
|
143965
|
+
buildSidebar(context, node, sidebarColumns) {
|
|
143968
143966
|
if (sidebarColumns === 0) {
|
|
143969
143967
|
return undefined;
|
|
143970
143968
|
}
|
|
@@ -143985,7 +143983,7 @@ class CrossfitTableConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODUL
|
|
|
143985
143983
|
|
|
143986
143984
|
for (const child of bodyRows) {
|
|
143987
143985
|
if (child instanceof _CrossfitTableNode__WEBPACK_IMPORTED_MODULE_14__.MultilineNode) {
|
|
143988
|
-
sidebarBuilder.appendChild(this.buildSidebarMultiline(context, (0,_getBindingPath__WEBPACK_IMPORTED_MODULE_1__.getNewBindingPathExpression)(child), child, node.doNotCopyPaths || [], node.hasRemovebutton(), Boolean(node.rowmenu)
|
|
143986
|
+
sidebarBuilder.appendChild(this.buildSidebarMultiline(context, (0,_getBindingPath__WEBPACK_IMPORTED_MODULE_1__.getNewBindingPathExpression)(child), child, node.doNotCopyPaths || [], node.hasRemovebutton(), Boolean(node.rowmenu)));
|
|
143989
143987
|
} else if (child instanceof _CrossfitTableNode__WEBPACK_IMPORTED_MODULE_14__.CrossfitTableRowNode) {
|
|
143990
143988
|
const rowBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_2__.componentMarkupBuilder)("CrossfitTableSidebarRow");
|
|
143991
143989
|
rowBuilder.appendChildren(this.buildBodyColumns(context, node, child.columns, 0, sidebarColumns, true));
|
|
@@ -143998,7 +143996,7 @@ class CrossfitTableConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODUL
|
|
|
143998
143996
|
return sidebarBuilder;
|
|
143999
143997
|
}
|
|
144000
143998
|
|
|
144001
|
-
buildSidebarMultiline(context, multilinePath, multilineNode, doNotCopyPaths, removeButton, rowMenu
|
|
143999
|
+
buildSidebarMultiline(context, multilinePath, multilineNode, doNotCopyPaths, removeButton, rowMenu) {
|
|
144002
144000
|
if (removeButton && rowMenu) {
|
|
144003
144001
|
throw new Error(`Выберите или rowMenu или removeButton для таблицы ${multilinePath.toString()}`);
|
|
144004
144002
|
}
|
|
@@ -144025,7 +144023,6 @@ class CrossfitTableConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODUL
|
|
|
144025
144023
|
} else if (removeButton) {
|
|
144026
144024
|
const removeButtonBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_2__.componentMarkupBuilder)("RemoveRowButton");
|
|
144027
144025
|
multilineSidebarRow.prop(x => x.addTopMargin).set(true);
|
|
144028
|
-
removeButtonBuilder.prop(x => x.optional).set(optional);
|
|
144029
144026
|
sideControlsBuilder.appendChild(removeButtonBuilder);
|
|
144030
144027
|
}
|
|
144031
144028
|
|
|
@@ -147508,7 +147505,7 @@ BindingPath: ${errorPath}`));
|
|
|
147508
147505
|
}
|
|
147509
147506
|
|
|
147510
147507
|
buildSidebarMultilineProps(context, tableNode, multiline, mb) {
|
|
147511
|
-
var _multiline$addbutton, _multiline$doNotCopyP, _multiline$focusByHot, _multiline$usepager
|
|
147508
|
+
var _multiline$addbutton, _multiline$doNotCopyP, _multiline$focusByHot, _multiline$usepager;
|
|
147512
147509
|
|
|
147513
147510
|
this.checkRemoveButtonAndRowMenuInvariant(multiline);
|
|
147514
147511
|
|
|
@@ -147537,7 +147534,6 @@ BindingPath: ${errorPath}`));
|
|
|
147537
147534
|
mb.prop(x => x.focusByHotkey).set((_multiline$focusByHot = multiline.focusByHotkey) !== null && _multiline$focusByHot !== void 0 ? _multiline$focusByHot : false);
|
|
147538
147535
|
mb.prop(x => x.isPager).set((_multiline$usepager = multiline.usepager) !== null && _multiline$usepager !== void 0 ? _multiline$usepager : true);
|
|
147539
147536
|
mb.prop(x => x.isAddButton).set(multiline.addbutton !== "false");
|
|
147540
|
-
mb.prop(x => x.optional).set((_multiline$optional = multiline.optional) !== null && _multiline$optional !== void 0 ? _multiline$optional : false);
|
|
147541
147537
|
}
|
|
147542
147538
|
|
|
147543
147539
|
getMultiline(context, node, multiline, start, end = Infinity) {
|