Skip to content

Commit 0a7ab6e

Browse files
wscherphofAzure Pipeline
andauthored
feat: Composite Editor should support cell selection (#1990)
* feat: Composite Editor should support cell selection, fixes #1987 --------- Co-authored-by: Azure Pipeline <pipeline@azure.com>
1 parent 44a7420 commit 0a7ab6e

14 files changed

Lines changed: 101 additions & 23 deletions

File tree

demos/aurelia/test/cypress/e2e/example30.cy.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -558,10 +558,6 @@ describe('Example 30 Composite Editor Modal', () => {
558558
cy.get('.slick-editor-modal').should('not.exist');
559559
});
560560

561-
it('should not have any row selected after the mass-selection save is over', () => {
562-
cy.get('.slick-row').children().filter('.slick-cell-checkboxsel.selected').should('have.length', 0);
563-
});
564-
565561
it('should have updated all the changed values BUT only on the 2 selected rows', () => {
566562
cy.get(`[style="transform: translateY(${GRID_ROW_HEIGHT * 0}px);"] > .slick-cell:nth(4)`).should('contain', '51');
567563
cy.get(`[style="transform: translateY(${GRID_ROW_HEIGHT * 0}px);"] > .slick-cell:nth(7)`)

demos/react/test/cypress/e2e/example30.cy.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -558,10 +558,6 @@ describe('Example 30 Composite Editor Modal', () => {
558558
cy.get('.slick-editor-modal').should('not.exist');
559559
});
560560

561-
it('should not have any row selected after the mass-selection save is over', () => {
562-
cy.get('.slick-row').children().filter('.slick-cell-checkboxsel.selected').should('have.length', 0);
563-
});
564-
565561
it('should have updated all the changed values BUT only on the 2 selected rows', () => {
566562
cy.get(`[style="transform: translateY(${GRID_ROW_HEIGHT * 0}px);"] > .slick-cell:nth(4)`).should('contain', '51');
567563
cy.get(`[style="transform: translateY(${GRID_ROW_HEIGHT * 0}px);"] > .slick-cell:nth(7)`)

demos/vue/test/cypress/e2e/example30.cy.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -554,10 +554,6 @@ describe('Example 30 Composite Editor Modal', () => {
554554
cy.get('.slick-editor-modal').should('not.exist');
555555
});
556556

557-
it('should not have any row selected after the mass-selection save is over', () => {
558-
cy.get('.slick-row').children().filter('.slick-cell-checkboxsel.selected').should('have.length', 0);
559-
});
560-
561557
it('should have updated all the changed values BUT only on the 2 selected rows', () => {
562558
cy.get(`[style="transform: translateY(${GRID_ROW_HEIGHT * 0}px);"] > .slick-cell:nth(4)`).should('contain', '51');
563559
cy.get(`[style="transform: translateY(${GRID_ROW_HEIGHT * 0}px);"] > .slick-cell:nth(7)`)

docs/grid-functionalities/Composite-Editor-Modal.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,16 @@ this.compositeEditorInstance?.openDetails({
265265
});
266266
```
267267

268+
### onDispose
269+
The `onDispose` callback function notifies you that the editor is finished and being disposed. It gets called regardless of whether there are changes or not.
270+
```ts
271+
this.compositeEditorInstance?.openDetails({
272+
headerTitle: 'Create Item',
273+
modalType: 'create',
274+
onDispose: () => console.log('editor removed'),
275+
});
276+
```
277+
268278
### onError
269279
The `onError` callback function will execute anytime an error is thrown by the modal window.
270280
You can return a synchronous or asynchronous function (typically the latter), for example we could display an alert when leaving with unsaved data.

frameworks/angular-slickgrid/docs/grid-functionalities/Composite-Editor-Modal.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,16 @@ this.compositeEditorInstance?.openDetails({
194194
});
195195
```
196196
197+
### onDispose
198+
The `onDispose` callback function notifies you that the editor is finished and being disposed. It gets called regardless of whether there are changes or not.
199+
```ts
200+
this.compositeEditorInstance?.openDetails({
201+
headerTitle: 'Create Item',
202+
modalType: 'create',
203+
onDispose: () => console.log('editor removed'),
204+
});
205+
```
206+
197207
### onError
198208
The `onError` callback function will execute anytime an error is thrown by the modal window.
199209
You can return a synchronous or asynchronous function (typically the latter), for example we could display an alert when leaving with unsaved data.

frameworks/angular-slickgrid/test/cypress/e2e/example30.cy.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -557,10 +557,6 @@ describe('Example 30 Composite Editor Modal', () => {
557557
cy.get('.slick-editor-modal').should('not.exist');
558558
});
559559

560-
it('should not have any row selected after the mass-selection save is over', () => {
561-
cy.get('.slick-row').children().filter('.slick-cell-checkboxsel.selected').should('have.length', 0);
562-
});
563-
564560
it('should have updated all the changed values BUT only on the 2 selected rows', () => {
565561
cy.get(`[style="transform: translateY(${GRID_ROW_HEIGHT * 0}px);"] > .slick-cell:nth(4)`).should('contain', '51');
566562
cy.get(`[style="transform: translateY(${GRID_ROW_HEIGHT * 0}px);"] > .slick-cell:nth(7)`)

frameworks/aurelia-slickgrid/docs/grid-functionalities/composite-editor-modal.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,16 @@ this.compositeEditorInstance?.openDetails({
194194
});
195195
```
196196
197+
### onDispose
198+
The `onDispose` callback function notifies you that the editor is finished and being disposed. It gets called regardless of whether there are changes or not.
199+
```ts
200+
this.compositeEditorInstance?.openDetails({
201+
headerTitle: 'Create Item',
202+
modalType: 'create',
203+
onDispose: () => console.log('editor removed'),
204+
});
205+
```
206+
197207
### onError
198208
The `onError` callback function will execute anytime an error is thrown by the modal window.
199209
You can return a synchronous or asynchronous function (typically the latter), for example we could display an alert when leaving with unsaved data.

frameworks/slickgrid-react/docs/grid-functionalities/composite-editor-modal.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,16 @@ compositeEditorInstance?.openDetails({
205205
});
206206
```
207207
208+
### onDispose
209+
The `onDispose` callback function notifies you that the editor is finished and being disposed. It gets called regardless of whether there are changes or not.
210+
```ts
211+
this.compositeEditorInstance?.openDetails({
212+
headerTitle: 'Create Item',
213+
modalType: 'create',
214+
onDispose: () => console.log('editor removed'),
215+
});
216+
```
217+
208218
### onError
209219
The `onError` callback function will execute anytime an error is thrown by the modal window.
210220
You can return a synchronous or asynchronous function (typically the latter), for example we could display an alert when leaving with unsaved data.

frameworks/slickgrid-vue/docs/grid-functionalities/composite-editor-modal.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,16 @@ compositeEditorInstance?.openDetails({
207207
});
208208
```
209209

210+
### onDispose
211+
The `onDispose` callback function notifies you that the editor is finished and being disposed. It gets called regardless of whether there are changes or not.
212+
```ts
213+
this.compositeEditorInstance?.openDetails({
214+
headerTitle: 'Create Item',
215+
modalType: 'create',
216+
onDispose: () => console.log('editor removed'),
217+
});
218+
```
219+
210220
### onError
211221
The `onError` callback function will execute anytime an error is thrown by the modal window.
212222
You can return a synchronous or asynchronous function (typically the latter), for example we could display an alert when leaving with unsaved data.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,4 +137,4 @@
137137
"type": "ko_fi",
138138
"url": "https://ko-fi.com/ghiscoding"
139139
}
140-
}
140+
}

0 commit comments

Comments
 (0)