You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@slickgrid-universal/custom-footer-component

Package Overview
Dependencies
Maintainers
1
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@slickgrid-universal/custom-footer-component - npm Package Compare versions

Comparing version

to
5.2.0

8

package.json
{
"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