Skip to content

Commit

Permalink
fix: update Slickgrid-Universal to fix a few UI issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding committed Nov 30, 2024
1 parent 2d97255 commit 3fc71cd
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 23 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"@jest/types": "^29.6.3",
"@lerna-lite/cli": "^3.10.1",
"@lerna-lite/publish": "^3.10.1",
"@slickgrid-universal/common": "^5.10.1",
"@slickgrid-universal/common": "^5.10.2",
"@types/jest": "^29.5.14",
"@types/node": "^22.10.1",
"conventional-changelog-conventionalcommits": "^7.0.2",
Expand Down
14 changes: 7 additions & 7 deletions packages/aurelia-slickgrid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@
"@aurelia/runtime": "^2.0.0-beta.22",
"@aurelia/runtime-html": "^2.0.0-beta.22",
"@formkit/tempo": "^0.1.2",
"@slickgrid-universal/common": "~5.10.1",
"@slickgrid-universal/custom-footer-component": "~5.10.1",
"@slickgrid-universal/empty-warning-component": "~5.10.1",
"@slickgrid-universal/event-pub-sub": "~5.9.0",
"@slickgrid-universal/pagination-component": "~5.10.1",
"@slickgrid-universal/row-detail-view-plugin": "~5.10.1",
"@slickgrid-universal/utils": "~5.9.0",
"@slickgrid-universal/common": "~5.10.2",
"@slickgrid-universal/custom-footer-component": "~5.10.2",
"@slickgrid-universal/empty-warning-component": "~5.10.2",
"@slickgrid-universal/event-pub-sub": "~5.10.2",
"@slickgrid-universal/pagination-component": "~5.10.2",
"@slickgrid-universal/row-detail-view-plugin": "~5.10.2",
"@slickgrid-universal/utils": "~5.10.2",
"dequal": "^2.0.3",
"sortablejs": "^1.15.6"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import type { I18N } from '@aurelia/i18n';
import type { Column, GridOption as UniversalGridOption } from '@slickgrid-universal/common';
import type { BasePaginationComponent, Column, GridOption as UniversalGridOption } from '@slickgrid-universal/common';

import type { RowDetailView } from './rowDetailView.interface';

export interface GridOption<C extends Column = Column> extends UniversalGridOption<C> {
/** External Custom Pagination Component that can be provided by the user */
customPaginationComponent?: typeof BasePaginationComponent;

/** I18N translation service instance */
i18n?: I18N;

Expand Down
20 changes: 10 additions & 10 deletions packages/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,19 @@
"@fnando/sparkline": "^0.3.10",
"@formkit/tempo": "^0.1.2",
"@popperjs/core": "^2.11.8",
"@slickgrid-universal/common": "^5.10.1",
"@slickgrid-universal/composite-editor-component": "^5.10.1",
"@slickgrid-universal/custom-tooltip-plugin": "^5.10.1",
"@slickgrid-universal/excel-export": "^5.10.1",
"@slickgrid-universal/graphql": "^5.10.1",
"@slickgrid-universal/odata": "^5.10.1",
"@slickgrid-universal/row-detail-view-plugin": "^5.10.1",
"@slickgrid-universal/rxjs-observable": "^5.10.1",
"@slickgrid-universal/text-export": "^5.10.1",
"@slickgrid-universal/common": "^5.10.2",
"@slickgrid-universal/composite-editor-component": "^5.10.2",
"@slickgrid-universal/custom-tooltip-plugin": "^5.10.2",
"@slickgrid-universal/excel-export": "^5.10.2",
"@slickgrid-universal/graphql": "^5.10.2",
"@slickgrid-universal/odata": "^5.10.2",
"@slickgrid-universal/row-detail-view-plugin": "^5.10.2",
"@slickgrid-universal/rxjs-observable": "^5.10.2",
"@slickgrid-universal/text-export": "^5.10.2",
"aurelia": "^2.0.0-beta.22",
"aurelia-slickgrid": "workspace:*",
"bootstrap": "^5.3.3",
"i18next": "^23.16.5",
"i18next": "^23.16.8",
"i18next-fetch-backend": "^6.0.0",
"rxjs": "^7.8.1"
},
Expand Down
24 changes: 21 additions & 3 deletions test/cypress/e2e/example10.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,13 @@ describe('Example 10 - Multiple Grids with Row Selection', () => {

cy.window().then((win) => {
expect(win.console.log).to.be.calledWith('Grid State changed:: ', { newValues: { gridRowIndexes: [1, 0], dataContextIds: [1, 12, 13, 3, 522], filteredDataContextIds: [3, 13] }, type: 'rowSelection' });
expect(win.console.log).to.be.calledWith('Grid State changed:: ', { newValues: [{ columnId: 'title', operator: 'Contains', searchTerms: ['3'], targetSelector: 'input.form-control.filter-title.search-filter.filled' }], type: 'filter' });
expect(win.console.log).to.be.calledWith('Grid State changed:: ', {
newValues: [{
columnId: 'title', operator: 'Contains', searchTerms: ['3'],
targetSelector: 'input.form-control.filter-title.search-filter.slick-filter.filled'
}],
type: 'filter'
});
});
});

Expand Down Expand Up @@ -681,7 +687,13 @@ describe('Example 10 - Multiple Grids with Row Selection', () => {
cy.window().then((win) => {
expect(win.console.log).to.have.callCount(4);
expect(win.console.log).to.be.calledWith('Grid State changed:: ', { newValues: { gridRowIndexes: [1, 0], dataContextIds: [1, 12, 13, 3, 522], filteredDataContextIds: [3, 13] }, type: 'rowSelection' });
expect(win.console.log).to.be.calledWith('Grid State changed:: ', { newValues: [{ columnId: 'title', operator: 'Contains', searchTerms: ['3'], targetSelector: 'input.form-control.filter-title.search-filter.filled' }], type: 'filter' });
expect(win.console.log).to.be.calledWith('Grid State changed:: ', {
newValues: [{
columnId: 'title', operator: 'Contains', searchTerms: ['3'],
targetSelector: 'input.form-control.filter-title.search-filter.slick-filter.filled'
}],
type: 'filter'
});
});
});

Expand Down Expand Up @@ -758,7 +770,13 @@ describe('Example 10 - Multiple Grids with Row Selection', () => {
cy.window().then((win) => {
expect(win.console.log).to.have.callCount(4);
expect(win.console.log).to.be.calledWith('Grid State changed:: ', { newValues: { gridRowIndexes: [1, 0], dataContextIds: [1, 12, 13, 3, 522], filteredDataContextIds: [3, 13] }, type: 'rowSelection' });
expect(win.console.log).to.be.calledWith('Grid State changed:: ', { newValues: [{ columnId: 'title', operator: 'Contains', searchTerms: ['3'], targetSelector: 'input.form-control.filter-title.search-filter.filled' }], type: 'filter' });
expect(win.console.log).to.be.calledWith('Grid State changed:: ', {
newValues: [{
columnId: 'title', operator: 'Contains', searchTerms: ['3'],
targetSelector: 'input.form-control.filter-title.search-filter.slick-filter.filled'
}],
type: 'filter'
});
});

cy.get('@grid2')
Expand Down
2 changes: 1 addition & 1 deletion test/cypress/e2e/example30.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ describe('Example 30 Composite Editor Modal', () => {
cy.get('[data-test=undo-last-edit-btn]').click();

cy.get('.vanilla-calendar')
.should('not.exist');
.should('not.be.visible');

cy.get('.unsaved-editable-field')
.should('have.length', 11);
Expand Down

0 comments on commit 3fc71cd

Please sign in to comment.