@kontur.candy/generator 4.263.0-optional-nested-units.19 → 4.263.0-optional-nested-units.20
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 +14 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -146771,6 +146771,7 @@ class StickyTableWithMultilineConverter extends _SugarNodeConverter__WEBPACK_IMP
|
|
|
146771
146771
|
const sideSize = (_node$side = node.side) !== null && _node$side !== void 0 ? _node$side : 0;
|
|
146772
146772
|
const mb = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_5__.componentMarkupBuilder)("StickyTable");
|
|
146773
146773
|
this.getTableProps(context, node, mb);
|
|
146774
|
+
const showSidebar = this.hasActionButton(node) || sideSize > 0;
|
|
146774
146775
|
mb.appendChild(this.getFullHeader(context, node));
|
|
146775
146776
|
|
|
146776
146777
|
if (this.isSimpleForm()) {
|
|
@@ -146778,12 +146779,18 @@ class StickyTableWithMultilineConverter extends _SugarNodeConverter__WEBPACK_IMP
|
|
|
146778
146779
|
mb.appendChild(this.getSidebar(context, node, sideSize));
|
|
146779
146780
|
}
|
|
146780
146781
|
} else {
|
|
146781
|
-
if (
|
|
146782
|
+
if (showSidebar) {
|
|
146782
146783
|
mb.appendChild(this.getSidebar(context, node, sideSize));
|
|
146783
146784
|
}
|
|
146784
146785
|
}
|
|
146785
146786
|
|
|
146786
146787
|
mb.appendChild(this.getData(context, node, sideSize));
|
|
146788
|
+
const withPagerWithoutActionButtons = node.rows.find(row => (0,_StickyTableNode__WEBPACK_IMPORTED_MODULE_17__.isMultilineNode)(row));
|
|
146789
|
+
const withPager = withPagerWithoutActionButtons && (0,_StickyTableNode__WEBPACK_IMPORTED_MODULE_17__.isMultilineNode)(withPagerWithoutActionButtons) && withPagerWithoutActionButtons.usepager;
|
|
146790
|
+
|
|
146791
|
+
if (withPager && !showSidebar) {
|
|
146792
|
+
mb.appendChild(this.getMultilinePager(withPagerWithoutActionButtons));
|
|
146793
|
+
}
|
|
146787
146794
|
|
|
146788
146795
|
if (node.footer != undefined) {
|
|
146789
146796
|
mb.appendChild(this.getFooter(context, node, node.footer));
|
|
@@ -147105,6 +147112,12 @@ BindingPath: ${errorPath}`));
|
|
|
147105
147112
|
return sidebarBuilder;
|
|
147106
147113
|
}
|
|
147107
147114
|
|
|
147115
|
+
getMultilinePager(node) {
|
|
147116
|
+
const pagerBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_5__.componentMarkupBuilder)("StickyTable", "StickyTable.MultilineRow.Pager");
|
|
147117
|
+
pagerBuilder.prop(x => x.bindingPath).set((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_13__.getNewBindingPathExpression)(node));
|
|
147118
|
+
return pagerBuilder;
|
|
147119
|
+
}
|
|
147120
|
+
|
|
147108
147121
|
getFooter(context, node, footer) {
|
|
147109
147122
|
const footerBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_5__.componentMarkupBuilder)("StickyTable", "StickyTable.Footer");
|
|
147110
147123
|
|