@slickgrid-universal/custom-footer-component
Advanced tools
Comparing version 5.1.0 to 5.2.0
{ | ||
"name": "@slickgrid-universal/custom-footer-component", | ||
"version": "5.1.0", | ||
"version": "5.2.0", | ||
"description": "Slick Custom Footer Component - Vanilla Implementation of a Custom Footer Component", | ||
@@ -42,6 +42,6 @@ "main": "./dist/cjs/index.js", | ||
"@formkit/tempo": "^0.1.1", | ||
"@slickgrid-universal/binding": "~5.0.0", | ||
"@slickgrid-universal/common": "~5.1.0" | ||
"@slickgrid-universal/binding": "~5.2.0", | ||
"@slickgrid-universal/common": "~5.2.0" | ||
}, | ||
"gitHead": "dec8be36272c9111cd708a1836e1697ac81be323" | ||
"gitHead": "d7de27ab3ac3c7e2d48302603ac76aaf794e66a2" | ||
} |
@@ -67,3 +67,3 @@ import { format } from '@formkit/tempo'; | ||
constructor(protected readonly grid: SlickGrid, protected readonly customFooterOptions: CustomFooterOption, protected readonly pubSubService: BasePubSubService, protected readonly translaterService?: TranslaterService) { | ||
constructor(protected readonly grid: SlickGrid, protected readonly customFooterOptions: CustomFooterOption, protected readonly pubSubService: BasePubSubService, protected readonly translaterService?: TranslaterService | undefined) { | ||
this._bindingHelper = new BindingHelper(); | ||
@@ -90,3 +90,3 @@ this._bindingHelper.querySelectorPrefix = `.${this.gridUid} `; | ||
dispose() { | ||
dispose(): void { | ||
// also dispose of all Subscriptions | ||
@@ -104,3 +104,3 @@ this._eventHandler.unsubscribeAll(); | ||
*/ | ||
renderFooter(gridParentContainerElm: HTMLElement) { | ||
renderFooter(gridParentContainerElm: HTMLElement): void { | ||
// execute translation when enabled or use defined text or locale | ||
@@ -114,3 +114,3 @@ this.translateCustomFooterTexts(); | ||
/** Render element attribute values */ | ||
renderMetrics(metrics: Metrics) { | ||
renderMetrics(metrics: Metrics): void { | ||
// get translated text & last timestamp | ||
@@ -131,3 +131,3 @@ const lastUpdateTimestamp = metrics?.endTime ? format(metrics.endTime, this.customFooterOptions.dateFormat, 'en-US') : ''; | ||
/** Render the left side footer text */ | ||
renderLeftFooterText(text: string) { | ||
renderLeftFooterText(text: string): void { | ||
this._bindingHelper.setElementAttributeValue('div.left-footer', 'textContent', text); | ||
@@ -137,3 +137,3 @@ } | ||
/** Render the right side footer text */ | ||
renderRightFooterText(text: string) { | ||
renderRightFooterText(text: string): void { | ||
this._bindingHelper.setElementAttributeValue('div.right-footer', 'textContent', text); | ||
@@ -143,3 +143,3 @@ } | ||
/** Translate all Custom Footer Texts (footer with metrics) */ | ||
translateCustomFooterTexts() { | ||
translateCustomFooterTexts(): void { | ||
if (this.gridOptions.enableTranslate && this.translaterService?.translate) { | ||
@@ -172,3 +172,3 @@ this.customFooterOptions.metricTexts = this.customFooterOptions.metricTexts || {}; | ||
/** Create the Footer Container */ | ||
protected createFooterContainer(gridParentContainerElm: HTMLElement) { | ||
protected createFooterContainer(gridParentContainerElm: HTMLElement): void { | ||
const footerElm = createDomElement('div', { | ||
@@ -260,3 +260,3 @@ className: `slick-custom-footer ${this.gridUid}`, | ||
*/ | ||
protected registerOnSelectedRowsChangedWhenEnabled(customFooterOptions: CustomFooterOption) { | ||
protected registerOnSelectedRowsChangedWhenEnabled(customFooterOptions: CustomFooterOption): void { | ||
const isRowSelectionEnabled = this.gridOptions.enableCheckboxSelector || this.gridOptions.enableRowSelection; | ||
@@ -263,0 +263,0 @@ if (isRowSelectionEnabled && customFooterOptions && (!customFooterOptions.hideRowSelectionCount && this._isLeftFooterOriginallyEmpty)) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
178228
+ Added@slickgrid-universal/binding@5.2.0(transitive)
+ Added@slickgrid-universal/common@5.2.0(transitive)
+ Added@slickgrid-universal/event-pub-sub@5.2.0(transitive)
+ Added@slickgrid-universal/utils@5.2.0(transitive)
- Removed@slickgrid-universal/binding@5.0.0(transitive)
- Removed@slickgrid-universal/common@5.1.0(transitive)
- Removed@slickgrid-universal/event-pub-sub@5.0.0(transitive)
- Removed@slickgrid-universal/utils@5.0.0(transitive)