UNPKG

@hashicorp/design-system-components

Version:
21 lines (16 loc) 854 B
import Component from '@glimmer/component'; import { precompileTemplate } from '@ember/template-compilation'; import { setComponentTemplate } from '@ember/component'; var TEMPLATE = precompileTemplate("{{!\n Copyright (c) HashiCorp, Inc.\n SPDX-License-Identifier: MPL-2.0\n}}\n<Hds::Text::Body class=\"hds-pagination-info\" @tag=\"div\" @size=\"100\" @weight=\"medium\" ...attributes>\n {{@itemsRangeStart}}–{{@itemsRangeEnd}}\n {{#if this.showTotalItems}}\n of\n {{@totalItems}}\n {{/if}}\n</Hds::Text::Body>"); /** * Copyright (c) HashiCorp, Inc. * SPDX-License-Identifier: MPL-2.0 */ class HdsPaginationInfo extends Component { get showTotalItems() { return this.args.showTotalItems ?? true; } } setComponentTemplate(TEMPLATE, HdsPaginationInfo); export { HdsPaginationInfo as default }; //# sourceMappingURL=index.js.map