@sebgroup/green-core 2.31.0 → 2.32.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/components/pagination/pagination.component.js +6 -2
- package/custom-elements.json +7885 -7834
- package/gds-element.js +1 -1
- package/generated/mcp/components.json +1 -1
- package/generated/mcp/icons.json +1 -1
- package/generated/mcp/index.json +1 -1
- package/generated/react/index.d.ts +4 -4
- package/generated/react/index.js +4 -4
- package/package.json +1 -1
- package/utils/helpers/custom-element-scoping.js +1 -1
|
@@ -96,7 +96,10 @@ let GdsPagination = class extends withMarginProps(
|
|
|
96
96
|
>
|
|
97
97
|
${__privateMethod(this, _GdsPagination_instances, renderLabel_fn).call(this)}
|
|
98
98
|
<gds-flex aling-items="center" gap="${__privateGet(this, _GdsPagination_instances, config_get).gap}" flex="1">
|
|
99
|
-
${[
|
|
99
|
+
${[
|
|
100
|
+
when(__privateGet(this, _GdsPagination_instances, pageCount_get) > 1, () => __privateMethod(this, _GdsPagination_instances, renderNavigationControls_fn).call(this)),
|
|
101
|
+
__privateMethod(this, _GdsPagination_instances, renderPageSizeMenu_fn).call(this)
|
|
102
|
+
]}
|
|
100
103
|
</gds-flex>
|
|
101
104
|
</gds-flex>
|
|
102
105
|
`;
|
|
@@ -296,7 +299,8 @@ renderPageSizeOption_fn = function(size) {
|
|
|
296
299
|
`;
|
|
297
300
|
};
|
|
298
301
|
renderPageSizeMenu_fn = function() {
|
|
299
|
-
if (this._isMobile || this.hideOptions
|
|
302
|
+
if (this._isMobile || this.hideOptions || this.options.length <= 1)
|
|
303
|
+
return null;
|
|
300
304
|
const rowsLabel = `${msg("Rows per page")}, ${this.rows} ${msg("selected")}`;
|
|
301
305
|
return html`
|
|
302
306
|
<gds-flex align-items="center" gap="s">
|