@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.
@@ -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
- ${[__privateMethod(this, _GdsPagination_instances, renderNavigationControls_fn).call(this), __privateMethod(this, _GdsPagination_instances, renderPageSizeMenu_fn).call(this)]}
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) return null;
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">